Module: libav Branch: release/0.8 Commit: 110e11981821720390d3bdc03bc6fd78e1fb348d
Author: Janne Grunau <[email protected]> Committer: Diego Biurrun <[email protected]> Date: Mon Jun 8 14:45:12 2015 +0200 aac_parser: add required padding for GetBitContext buffer Fixes stack buffer overflow errors detected by address sanitizer in various fate tests. CC: [email protected] (cherry picked from commit 02477323b92aacdabe0a2d129eeb0c15fbd1ec9e) Signed-off-by: Diego Biurrun <[email protected]> --- libavcodec/aac_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/aac_parser.c b/libavcodec/aac_parser.c index f0914e6..3708418 100644 --- a/libavcodec/aac_parser.c +++ b/libavcodec/aac_parser.c @@ -34,7 +34,7 @@ static int aac_sync(uint64_t state, AACAC3ParseContext *hdr_info, int size; union { uint64_t u64; - uint8_t u8[8]; + uint8_t u8[8 + FF_INPUT_BUFFER_PADDING_SIZE]; } tmp; tmp.u64 = av_be2ne64(state); _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
