• Max Kellermann's avatar
    mp3: fix buffer overflow when max_frames is too large · 913028a7
    Max Kellermann authored
    The function decodeFirstFrame() allocates memory based on data from
    the mp3 header.  This can make the buffer size allocation overflow, or
    lead to a DoS attack with a very large buffer.  Cap this buffer at 8
    million frames, which should really be enough for reasonable files.
    913028a7
Name
Last commit
Last update
..
_flac_common.c Loading commit data...
_flac_common.h Loading commit data...
_ogg_common.c Loading commit data...
_ogg_common.h Loading commit data...
aac_plugin.c Loading commit data...
audiofile_plugin.c Loading commit data...
flac_plugin.c Loading commit data...
mod_plugin.c Loading commit data...
mp3_plugin.c Loading commit data...
mp4_plugin.c Loading commit data...
mpc_plugin.c Loading commit data...
oggflac_plugin.c Loading commit data...
oggvorbis_plugin.c Loading commit data...
wavpack_plugin.c Loading commit data...