-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segfault when attempting to load RIFF SF2 soundbank #652
Comments
Fluidsynth fails to load this soundfont, because we used to pass an integer to fread(). https://github.com/FluidSynth/fluidsynth/pull/629/files#diff-033efa405126e8aa738c6a502777cd61R48 It then attempts to read a negative number of bytes. Because of that I doubt that "qsynth had no problems loading this exact soundfont" before. On recent master, this After fluidsynth failed to load the SF2, it passes loading to libinstpatch, which also fails. The following crash is a duplicate of swami/libinstpatch#48. Compile against libinstpatch 1.1.5 to fix the crash. |
I'm sure that I was using this soundfont with qsynth and problem showed up only after update a while ago. It's great that both issue and segfault already got fixed in respective masters! |
FluidSynth version
2.1.1
Describe the bug
When I try to load specific SoundFont (
Stgiga's HiDef Soundfont (2019-05-25).sf2
, RIFF (little-endian) data SoundFont/Bank) fluidsynth crashes with error message and segfault:Expected behavior
Fluidsynth loads soundfont without any problems (or at least handles error gracefully and avoids segfault).
Steps to reproduce
Additional context
It seems to me some sort of regression as some time before (can't post exact version sadly) qsynth had no problems loading this exact soundfont. I'm usually using qsynth and have resorted to command line fluidsynth only after meeting with this issue. Due to segfault caused by this issue qsynth now crashes on startup.
The text was updated successfully, but these errors were encountered: