History

avcodec/ilbcdec: Initialize tempbuff2

Fixes: Use of uninitialized value Fixes: 71350/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ILBC_fuzzer-6322020827070464

Michael Niedermayer committed 2 years ago

Commit 44822181 parent 61cbcaf1 file · +1 −1Browse files

Unified · Split

libavcodec/ilbcdec.c+1−1
@@ -658,7 +658,7 @@ static void get_codebook(int16_t * cbvec, /* (o) Constructed codebook vector * · 657 unmodified lines
658 int16_t k, base_size;658 int16_t k, base_size;
659 int16_t lag;659 int16_t lag;
660 /* Stack based */660 /* Stack based */
661 int16_t tempbuff2[SUBL + 5];661 int16_t tempbuff2[SUBL + 5] = {0};
662 662
663 /* Determine size of codebook sections */663 /* Determine size of codebook sections */
664 base_size = lMem - cbveclen + 1;664 base_size = lMem - cbveclen + 1;

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