History

libavcodec/bmp_parser.c: fix a use_of_uninitialized_value in target_dec_fuzzer.

the target_dec_fuzzer is checking for the avpkt.data pointer but if the bmp parser cannot combine the frame, the poutbuf is not set.

Thierry Foucu committed 6 years ago

Commit a1a85571 parent 3dc24b31 file · +1 −0Browse files

Showing the changes to libavcodec/bmp_parser.c (1 of 1 file). Show all

Unified · Split

libavcodec/bmp_parser.c+1−0
@@ -45,6 +45,7 @@ static int bmp_parse(AVCodecParserContext *s, AVCodecContext *avctx, · 44 unmodified lines
45 int i = 0;45 int i = 0;
46 46
47 *poutbuf_size = 0;47 *poutbuf_size = 0;
48 *poutbuf = NULL;
48 49
49restart:50restart:
50 if (bpc->pc.frame_start_found <= 2+4+4) {51 if (bpc->pc.frame_start_found <= 2+4+4) {

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