[FFmpeg-trac] #7983(undetermined:new): undefined-behavior at libavcodec/j2kenc.c:524:31
FFmpeg
trac at avcodec.org
Mon Jul 1 05:01:57 EEST 2019
#7983: undefined-behavior at libavcodec/j2kenc.c:524:31
-------------------------------------+-------------------------------------
Reporter: Suhwan | Type: defect
Status: new | Priority: important
Component: | Version: git-
undetermined | master
Keywords: j2kenc | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
There're undefined-behaviours at libavcodec/j2kenc.c:524, 530, 528 and one
from libavcodec/jpeg2000dwt.c:258:14(left shift of negative value -82)
How to reproduce:
{{{
% ffmpeg_g -y -r 56 -i tmp.avi -map 0 -c:v jpeg2000 -c:a v308
-disposition:a:124 g722 -disposition:s cinepak -vframes 59 -aframes 21 -r
2 -ar 48000 -ac 19 -strict 3 tmp_.adx
ffmpeg version N-94142-g3b2082c663 Copyright (c) 2000-2019 the FFmpeg
developers
built with clang version 9.0.0 (https://github.com/llvm/llvm-project.git
442a120567a4bc6c59bc754f9edabfb770086f36)
}}}
Patches should be submitted to the ffmpeg-devel mailing list and not this
bug tracker.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7983>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list