search for: flac_sm

Displaying 1 result from an estimated 1 matches for "flac_sm".

Did you mean: flac's
2009 Jan 28
1
Missing dereference in Stream::set_metadata()?
...y convert from FLAC::Metadata::Prototype pointers to FLAC__StreamMetadata pointers. Looking at the code, it does do the conversion but as a straight cast which is therefore nothing more than an assignment. As the two objects are not equivalent, this is a broken conversion. It results in an array of FLAC_SM pointers that return gibberish when used and produces seg faults, infinite memory consumption and other nasty effects! The code needs to derefence the FLAC::M::P pointer before doing the cast in order to make the compiler call the conversion operator on the object. That is, it should read: m[i...