Opened 5 years ago
Closed 5 years ago
#7983 closed defect (fixed)
undefined-behavior at libavcodec/j2kenc.c:524:31
Reported by: | Suhwan | Owned by: | |
---|---|---|---|
Priority: | minor | Component: | avcodec |
Version: | git-master | Keywords: | j2k ubsan |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | yes | |
Analyzed by developer: | no |
Description
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.
Attachments (2)
Change History (4)
by , 5 years ago
by , 5 years ago
Attachment: | gdb_log_7983 added |
---|
comment:1 by , 5 years ago
Component: | undetermined → avcodec |
---|---|
Keywords: | j2k ubsan added; j2kenc removed |
Reproduced by developer: | set |
Status: | new → open |
comment:2 by , 5 years ago
Priority: | important → minor |
---|---|
Resolution: | → fixed |
Status: | open → closed |
Fixed by Andreas Rheinhardt in 39b60359dbf7936eb1ef6a05b76ea7d821d115f5
Note:
See TracTickets
for help on using tickets.