Commit 234f76ae authored by Michael Niedermayer's avatar Michael Niedermayer

jpeg2000: Fix unintended sign extension in malloc arguments of prec

Fixes: CID1026772/3
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent d8c10324
......@@ -364,7 +364,7 @@ int ff_jpeg2000_init_component(Jpeg2000Component *comp,
band->coord[1][j] = ff_jpeg2000_ceildiv(band->coord[1][j], dy);
band->prec = av_malloc_array(reslevel->num_precincts_x *
reslevel->num_precincts_y,
(uint64_t)reslevel->num_precincts_y,
sizeof(*band->prec));
if (!band->prec)
return AVERROR(ENOMEM);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment