Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2015-06-08 15:45:12 +0300
committerJanne Grunau <janne-libav@jannau.net>2015-06-09 11:05:54 +0300
commitfb1473080223a634b8ac2cca48a632d037a0a69d (patch)
treeb4e3451bd8f3023a35e5c2dbd2ed154f30eca73c /libavcodec/aac_parser.c
parent4733a12dd17a91d606e0079ff9bb48b9f419cbef (diff)
aac_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/aac_parser.c')
-rw-r--r--libavcodec/aac_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aac_parser.c b/libavcodec/aac_parser.c
index fdaa5f8144..acb05d4de1 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);