aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/huffman.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-08-22 01:15:57 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-09-07 13:41:13 +0200
commit30ffb80dcaf7c5cfde35aafb0caf1c71effc8255 (patch)
tree7540dfb2541fefd9d2efe240e4c7c4d943d0531a /libavcodec/huffman.c
parent0a64e9a0299b8ded2508be4c6f4949f8f8f57724 (diff)
downloadffmpeg-30ffb80dcaf7c5cfde35aafb0caf1c71effc8255.tar.gz
avcodec: fix aac/ac3 parser bitstream buffer size
Buffers containing copies of the AAC and AC3 header bits were not padded before parsing, violating init_get_bits() buffer padding requirement, leading to potential buffer read overflows. This change adds FF_INPUT_BUFFER_PADDING_SIZE bytes to the bit buffer for parsing the header in each of aac_parser.c and ac3_parser.c. Based on patch by: Matt Wolenetz <wolenetz@chromium.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit fccd85b9f30525f88692f53134eba41f1f2d90db) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/huffman.c')
0 files changed, 0 insertions, 0 deletions