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
4545 s->pict_type = AV_PICTURE_TYPE_NONE;
4646
4747 *poutbuf_size = 0;
48+ *poutbuf = NULL;
4849
4950 if (!ppc->pc.frame_start_found) {
5051 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