Re: [FFmpeg-devel] [PATCH]lavc/motion_est: Fix undefined negative left shifts

2017-04-19 Thread Carl Eugen Hoyos
2017-04-18 16:28 GMT+02:00 Michael Niedermayer : > On Tue, Apr 18, 2017 at 11:04:34AM +0200, Carl Eugen Hoyos wrote: >> Hi! >> >> Attached patch fixes the following ubsan errors: >> libavcodec/motion_est.c:959:42: runtime error: left shift of negative >> value -16 >>

Re: [FFmpeg-devel] [PATCH]lavc/motion_est: Fix undefined negative left shifts

2017-04-18 Thread Michael Niedermayer
On Tue, Apr 18, 2017 at 11:04:34AM +0200, Carl Eugen Hoyos wrote: > Hi! > > Attached patch fixes the following ubsan errors: > libavcodec/motion_est.c:959:42: runtime error: left shift of negative > value -16 > libavcodec/motion_est.c:960:42: runtime error: left shift of negative > value -16 >

[FFmpeg-devel] [PATCH]lavc/motion_est: Fix undefined negative left shifts

2017-04-18 Thread Carl Eugen Hoyos
Hi! Attached patch fixes the following ubsan errors: libavcodec/motion_est.c:959:42: runtime error: left shift of negative value -16 libavcodec/motion_est.c:960:42: runtime error: left shift of negative value -16 I do not have a testcase for lines 961f. Please comment, Carl Eugen From