mirror of https://git.ffmpeg.org/ffmpeg.git
jpeg2000: Fix Unintended sign extension in malloc arguments of cblk.
Fixes CID1026770 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
6952e2f82a
commit
d8c10324ed
|
@ -420,7 +420,7 @@ int ff_jpeg2000_init_component(Jpeg2000Component *comp,
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
prec->cblk = av_malloc_array(prec->nb_codeblocks_width *
|
prec->cblk = av_malloc_array(prec->nb_codeblocks_width *
|
||||||
prec->nb_codeblocks_height,
|
(uint64_t)prec->nb_codeblocks_height,
|
||||||
sizeof(*prec->cblk));
|
sizeof(*prec->cblk));
|
||||||
if (!prec->cblk)
|
if (!prec->cblk)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
|
Loading…
Reference in New Issue