Opened 5 years ago
Closed 4 years ago
#8162 closed defect (fixed)
left shift of negative value bug in libavcodec/mpeg12dec.c
Reported by: | Suhwan | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avcodec |
Version: | git-master | Keywords: | ubsan |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Summary of the bug:
There is a left shift of negative value bug in libavcodec/mpeg12dec.c
libavcodec/mpeg12dec.c:2017:14: runtime error: left shift of negative value -622428417 SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior libavcodec/mpeg12dec.c:2017:14 in
How to reproduce:
% ./ffmpeg_g -y -i pedestrians-bug001-minimal.gxf -loglevel 99 -map 0 -aframes 68 -ab 738k -ac 12 -strict 3 output/tmp.roq ffmpeg version N-94943-g1db6e47e85 built on ubuntu 18.04 with clang-6 and UBSAN option.
Attachments (2)
Change History (3)
by , 5 years ago
Attachment: | gdb-mpeg12dec added |
---|
by , 5 years ago
Attachment: | pedestrians-bug001-minimal.gxf added |
---|
comment:1 by , 4 years ago
Component: | undetermined → avcodec |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Fixed in 093b6894bfc2a8f0804f1c774bfe7827e44ffdb2.
Note:
See TracTickets
for help on using tickets.
poc