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.
Showing the changes to libavcodec/bmp_parser.c (1 of 1 file). Show all
Unified · Split
| @@ -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 | ||
| 49 | restart: | 50 | restart: |
| 50 | if (bpc->pc.frame_start_found <= 2+4+4) { | 51 | if (bpc->pc.frame_start_found <= 2+4+4) { |