diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-06-03 14:16:19 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-06-03 14:16:19 +0200 |
commit | d8c10324eda724b5a6e04477ed600dfb6804dd30 (patch) | |
tree | 2c5dae2e27bdc1b1256e761359a8f1e21e74f25c /libavcodec/jpeg2000.c | |
parent | 6952e2f82a8aaa8e0c378f82b518925179daa698 (diff) | |
download | ffmpeg-d8c10324eda724b5a6e04477ed600dfb6804dd30.tar.gz |
jpeg2000: Fix Unintended sign extension in malloc arguments of cblk.
Fixes CID1026770
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/jpeg2000.c')
-rw-r--r-- | libavcodec/jpeg2000.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/jpeg2000.c b/libavcodec/jpeg2000.c index 26446cf308..c98b925394 100644 --- a/libavcodec/jpeg2000.c +++ b/libavcodec/jpeg2000.c @@ -420,7 +420,7 @@ int ff_jpeg2000_init_component(Jpeg2000Component *comp, return AVERROR(ENOMEM); prec->cblk = av_malloc_array(prec->nb_codeblocks_width * - prec->nb_codeblocks_height, + (uint64_t)prec->nb_codeblocks_height, sizeof(*prec->cblk)); if (!prec->cblk) return AVERROR(ENOMEM); |