History

libavcodec/png_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 png parser cannot combine the frame, the poutbuf is not set.

Thierry Foucu committed 6 years ago

Commit d5422a11 parent cf285211 file · +1 −0Browse files

Unified · Split

libavcodec/png_parser.c+1−0
@@ -45,6 +45,7 @@ static int png_parse(AVCodecParserContext *s, AVCodecContext *avctx, · 44 unmodified lines
45 s->pict_type = AV_PICTURE_TYPE_NONE;45 s->pict_type = AV_PICTURE_TYPE_NONE;
46 46
47 *poutbuf_size = 0;47 *poutbuf_size = 0;
48 *poutbuf = NULL;
48 49
49 if (!ppc->pc.frame_start_found) {50 if (!ppc->pc.frame_start_found) {
50 uint64_t state64 = ppc->pc.state64;51 uint64_t state64 = ppc->pc.state64;

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