1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-28 20:53:54 +02:00

aacdec_ac: fix an overread

Fixes reading state->last[i + 1] in ff_aac_ac_get_context for the
last array member.
This commit is contained in:
Lynne 2024-06-16 10:22:25 +02:00
parent 50e5b78b79
commit 89de2f0de1
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464

View File

@ -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;