Skip to content
Snippets Groups Projects
Commit d8c10324 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

jpeg2000: Fix Unintended sign extension in malloc arguments of cblk.


Fixes CID1026770
Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 6952e2f8
No related branches found
No related tags found
No related merge requests found
...@@ -420,7 +420,7 @@ int ff_jpeg2000_init_component(Jpeg2000Component *comp, ...@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment