[x264-devel] [BUG] Out of range runtime error in x264_weights_analyze method

BugMaster BugMaster at narod.ru
Fri Jul 20 07:39:49 CEST 2018


On Thu, 19 Jul 2018 19:25:57 -0700, Sasi Inguva wrote:
> Hi,


> We found a test file where x264 encoder crashes with runtime error like this
>  ./x264 --input-res 1024x640   -o ./tmp.x264  ./concat_bug_video.yuv

> yuv [info]: 1024x640p 0:0 @ 25/1 fps (cfr)
> x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
> x264 [info]: profile High, level 3.1
> encoder/slicetype.c:407:97: runtime error: value inf is outside the
> range of representable values of type 'int'

> This is our compilation configuration -make clean && ./configure 
> --enable-pic --enable-static
> --extra-cflags="-fsanitize=return,returns-nonnull-attribute,vla-bound,unreachable,float-cast-overflow
> -fno-sanitize-recover=all" 
> --extra-ldflags="-fsanitize=return,returns-nonnull-attribute,vla-bound,unreachable,float-cast-overflow
> -fno-sanitize-recover=all" && make -j12



> Here is the public downloadable link for the test file
> https://drive.google.com/file/d/1eul4YshXV_H0ZsRciqNBOeM5eFXbhnf5/view?usp=sharing



> Let me know if anymore information is needed.  Thanks

Hi. Try with attached patch.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-float-division-by-zero-in-weightp-analysis.patch
Type: application/octet-stream
Size: 1674 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20180720/845ab141/attachment.obj>


More information about the x264-devel mailing list