[FFmpeg-trac] #8167(undetermined:new): left shift of negative value bugs in libavcodec/motion_est_template.c
FFmpeg
trac at avcodec.org
Mon Sep 16 19:25:35 EEST 2019
#8167: left shift of negative value bugs in libavcodec/motion_est_template.c
-------------------------------------+-------------------------------------
Reporter: Suhwan | Type: defect
Status: new | Priority: normal
Component: | Version: git-
undetermined | master
Keywords: ubsan | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
There're two left shift of negative value bugs in
libavcodec/motion_est_template.c
{{{
libavcodec/motion_est_template.c:160:14: runtime error: left shift of
negative value -1
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior
libavcodec/motion_est_template.c:160:14 in
libavcodec/motion_est_template.c:161:14: runtime error: left shift of
negative value -2
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior
libavcodec/motion_est_template.c:161:14 in
}}}
How to reproduce:
{{{
% ./ffmpeg_g -t 2 -y -r 90 -i Freh7_B.264 -map 0 -vframes 120 -aframes 84
-r 79 -ab 847k -ac 12 -b:v 283k output/tmp.h261
ffmpeg version N-94943-g1db6e47e85
built on ubuntu 18.04 with clang-6 and UBSAN option.
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8167>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list