projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0069d45
)
aac_parser: add required padding for GetBitContext buffer
author
Janne Grunau
<janne-libav@jannau.net>
Mon, 8 Jun 2015 12:45:12 +0000
(14:45 +0200)
committer
Janne Grunau
<janne-libav@jannau.net>
Wed, 8 Jul 2015 21:37:51 +0000
(23:37 +0200)
Fixes stack buffer overflow errors detected by address sanitizer in
various fate tests.
CC: libav-stable@libav.org
libavcodec/aac_parser.c
patch
|
blob
|
history
diff --git
a/libavcodec/aac_parser.c
b/libavcodec/aac_parser.c
index
fdaa5f8
..
acb05d4
100644
(file)
--- 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);