Fixes: NULL pointer dereferences Fixes: 68197/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HEVC_fuzzer-6382538823106560
Unified · Split
| @@ -1969,13 +1969,13 @@ static void hls_prediction_unit(HEVCLocalContext *lc, int x0, int y0, · 1968 unmodified lines | ||
| 1969 | 1969 | |
| 1970 | 1970 | if (current_mv.pred_flag & PF_L0) { |
| 1971 | 1971 | ref0 = refPicList[0].ref[current_mv.ref_idx[0]]; |
| 1972 | − if (!ref0 || !ref0->frame->data[0]) | |
| 1972 | + if (!ref0 || !ref0->frame) | |
| 1973 | 1973 | return; |
| 1974 | 1974 | hevc_await_progress(s, ref0, ¤t_mv.mv[0], y0, nPbH); |
| 1975 | 1975 | } |
| 1976 | 1976 | if (current_mv.pred_flag & PF_L1) { |
| 1977 | 1977 | ref1 = refPicList[1].ref[current_mv.ref_idx[1]]; |
| 1978 | − if (!ref1 || !ref1->frame->data[0]) | |
| 1978 | + if (!ref1 || !ref1->frame) | |
| 1979 | 1979 | return; |
| 1980 | 1980 | hevc_await_progress(s, ref1, ¤t_mv.mv[1], y0, nPbH); |
| 1981 | 1981 | } |