History

aacdec_ac: fix an overread

Fixes reading state->last[i + 1] in ff_aac_ac_get_context for the last array member.

Lynne committed 2 years ago

Commit 89de2f01 parent 50e5b781 file · +1 −1Browse files

Unified · Split

libavcodec/aac/aacdec_ac.h+1−1
@@ -25,7 +25,7 @@ · 24 unmodified lines
2525 #include "libavcodec/get_bits.h"
2626
2727 typedef struct AACArithState {
28− uint8_t last[512 /* 2048 / 4 */];
28+ uint8_t last[512 /* 2048 / 4 */ + 1];
2929 int last_len;
3030 uint8_t cur[4];
3131 uint16_t state_pre;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t