[ogg-dev] Fixing ogg vorbis corruption caused by bad metadata

Adam Rosi-Kessel adam at rosi-kessel.org
Wed Jul 22 06:43:59 PDT 2009


Erik de Castro Lopo wrote, on 7/21/2009 11:51 PM:
>> Anyway, calling alloc()s with no corresponding
>> free()s is a memory leak.  Not good code.
> The alloca() function allocates space on the stack and
> that allocation is automatically freed when the function
> that did the allocation returns.
>
> The Linux man page is quite informative.

So it sounds like this should be a vorbis bug insofar as the libraries 
are coded with a function that is buggy under Windows, which could be 
fixed relatively easily by switching to alloc/free calls instead? Other 
Windows clients using these libraries could presumably cause the same 
corruption that I had.


More information about the ogg-dev mailing list