diff options
author | Lynne <dev@lynne.ee> | 2024-06-16 10:22:25 +0200 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2024-06-21 10:50:21 +0200 |
commit | 89de2f0de1a41349fe827c00c8f52ca3c12594ad (patch) | |
tree | f89493499e505c17a6d5c17adcc8db9b5f94ff0e | |
parent | 50e5b78b79f5b908e249ca5aca23be7be23bedad (diff) | |
download | ffmpeg-89de2f0de1a41349fe827c00c8f52ca3c12594ad.tar.gz |
aacdec_ac: fix an overread
Fixes reading state->last[i + 1] in ff_aac_ac_get_context for the
last array member.
-rw-r--r-- | libavcodec/aac/aacdec_ac.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aac/aacdec_ac.h b/libavcodec/aac/aacdec_ac.h index 0b98c0f0d9..b8d4ade4c6 100644 --- a/libavcodec/aac/aacdec_ac.h +++ b/libavcodec/aac/aacdec_ac.h @@ -25,7 +25,7 @@ #include "libavcodec/get_bits.h" typedef struct AACArithState { - uint8_t last[512 /* 2048 / 4 */]; + uint8_t last[512 /* 2048 / 4 */ + 1]; int last_len; uint8_t cur[4]; uint16_t state_pre; |