vorbis_comment_add_tag() crash: very large alloca()
While transcoding several MP3s via GStreamer on OSX with libvorbis 1.3.5, I encountered a consistent segmentation fault in vorbis_comment_add_tag().
GStreamer passes a very large "contents" argument for these files. vorbis_comment_add_tag() allocates the comment using alloca(), resulting in a stack overflow.
Replacing alloca() with _ogg_malloc() (and adding a corresponding _ogg_free()) resolves the crash.