Out of memory handling?
Gábor Kovács <[email protected]> Mon, 7 Nov 2011 09:43:02 +0100
| Newsgroups | gmane.comp.multimedia.ogg.vorbis.devel |
|---|---|
| Message-ID | <CAHLi6cvdU2vsCz=deGuP-c0kCV=cf9hpKWxek01r3SF9N09-dg@mail.gmail.com> |
Hi, As far as I see in libvorbis most of the places where _ogg_malloc(), _ogg_realloc and _ogg_calloc() is called the return value is not checked for out of memory condition. Is there any plan to change this? For my use-case the application is not allowed to crash. So if libvorbis can not handle this condition, I guess I would need to preallocate a large enough custom memory heap for all kind of vorbis files and override the ogg allocation macros. Best regards, Gábor _______________________________________________ Vorbis-dev mailing list [email protected] http://lists.xiph.org/mailman/listinfo/vorbis-dev