History

avformat/jpegxl_anim_dec: Perform operations in a different order

Fixes: OOM Fixes: 59802/clusterfuzz-testcase-minimized-ffmpeg_dem_JPEGXL_ANIM_fuzzer-5681765466112000

Michael Niedermayer committed 3 years ago

Commit 9fc141f1 parent 61047f01 file · +1 −1Browse files

Unified · Split

libavformat/jpegxl_anim_dec.c+1−1
@@ -231,7 +231,7 @@ static int jpegxl_anim_read_packet(AVFormatContext *s, AVPacket *pkt) · 230 unmodified lines
231 if (ctx->initial && size < ctx->initial->size)231 if (ctx->initial && size < ctx->initial->size)
232 size = ctx->initial->size;232 size = ctx->initial->size;
233 233
234 if ((ret = av_new_packet(pkt, size) < 0))234 if ((ret = av_new_packet(pkt, size)) < 0)
235 return ret;235 return ret;
236 236
237 if (ctx->initial) {237 if (ctx->initial) {

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