[Flac-dev] Bug in FLAC++ Stream::set_metadata()

Josh Coalson xflac at yahoo.com
Tue Jan 2 13:37:23 PST 2007

--- "John W. Terrell" <john-flacdev at coolpeople.us> wrote:
> I've found what looks like a bug in FLAC++ inside the
> Stream::set_metadata() method.  It appears that the contained calls
> to FLAC__stream_encoder_set_metadata() are being passed arguments
> that point to local stack data (specifically the 'm' parameter which
> is a table that points to metadata objects).   The code inside
> FLAC__stream_encoder_set_metadata() does nothing but store the given
> args ('m' and 'num_blocks').   When Stream::set_metadata() exits,
> those stack objects go out of scope (or alternatively in the MSVC
> case, they're explicitly deleted).   Later inside the encoder's
> init() function, those destroyed data members are accessed and causes
> a fault.

ah yes, I thought I had fixed that for 1.1.3, will add a bug
report for it so it doesn't get overlooked again.


Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

More information about the Flac-dev mailing list