aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2015-06-08 14:48:26 +0200
committerJanne Grunau <janne-libav@jannau.net>2015-06-09 10:06:59 +0200
commit09447f2b0fafac6d9565aab82a4c5f16fc99ee5e (patch)
tree283b494394911f283bcfcd26d2509df9a6486bd6 /libavcodec
parentfb1473080223a634b8ac2cca48a632d037a0a69d (diff)
downloadffmpeg-09447f2b0fafac6d9565aab82a4c5f16fc99ee5e.tar.gz
ac3_parser: add required padding for GetBitContext buffer
Fixes stack buffer overflow errors detected by address sanitizer in various fate tests. CC: libav-stable@libav.org
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/ac3_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ac3_parser.c b/libavcodec/ac3_parser.c
index 5ea09f8fcd..69d88c1a76 100644
--- a/libavcodec/ac3_parser.c
+++ b/libavcodec/ac3_parser.c
@@ -150,7 +150,7 @@ static int ac3_sync(uint64_t state, AACAC3ParseContext *hdr_info,
int err;
union {
uint64_t u64;
- uint8_t u8[8];
+ uint8_t u8[8 + FF_INPUT_BUFFER_PADDING_SIZE];
} tmp = { av_be2ne64(state) };
AC3HeaderInfo hdr;
GetBitContext gbc;