[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [fluid-dev] Crash in delete_fluid_audio_driver( NULL)
From: |
Josh Green |
Subject: |
Re: [fluid-dev] Crash in delete_fluid_audio_driver( NULL) |
Date: |
Tue, 21 Nov 2006 21:44:32 +0000 |
Ok. But isn't the best error reporting when a programmer does something
wrong.. a crash? Just kidding. Although I probably won't go through
every function at this point, protecting it from this kind of situation.
Josh
On Tue, 2006-11-21 at 20:24 +0000, Paul Millar wrote:
> Hi all,
>
> Sorry, another quick one..
>
> If you call delete_fluid_audio_driver() with NULL, libfluidsynth crashes the
> code with a seg-fault, presumably trying dereferencing the NULL ptr. The
> other functions I tried (delete_fluid_synth() and delete_fluid_settings() )
> don't suffer from this.
>
> Trying to delete a NULL fluid_audio_driver_t could happen in sloppy code
> (like
> mine, oops, updated now :-) that doesn't check that new_fluid_audio_driver()
> succeeded.
>
> So, perhaps this would be something to fix in the next release...
>
> Cheers,
>
> Paul.
> _______________________________________________
> fluid-dev mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/fluid-dev