<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi,</div><div><br></div><div>    x264 (sandbox version, HEAD d4099dd4c722f52c4f3c14575d7d39eb8fadb97f) suffers from an invalid read error which may result in a segfault.</div><div>    An ASAN instrumented x264 reports error messages like the following:</div><div><br></div><div>$ ./x264-asan/install/bin/x264 --threads 1 read_mc-c.c:772_1.avi -o /dev/null</div><div><br></div><div><div>[avi @ 0x61b000000080] crazy start time, iam scared, giving up</div><div>[avi @ 0x61b000000080] Something went wrong during header parsing, tag 0000 has size 808464432, I will ignore it and try to continue anyway.</div><div>lavf [info]: 667696x16p 0:1 @ 1/1 fps (vfr)</div><div>resize [warning]: converting from pal8 to rgb24</div><div>resize [warning]: converting from rgb24 to yuv420p</div><div>x264 [warning]: frame MB size (41731x1) > level limit (139264)</div><div>x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2</div><div>x264 [info]: profile Progressive High, level 6.2, 4:2:0, 8-bit</div><div>ASAN:DEADLYSIGNAL</div><div>=================================================================</div><div>==17224==ERROR: AddressSanitizer: SEGV on unknown address 0x7f71d989f2c0 (pc 0x0000007f1a77 bp 0x000000008008 sp 0x7ffdaef27240 T0)</div><div>==17224==The signal is caused by a READ memory access.</div><div>    #0 0x7f1a76 in mbtree_propagate_list_avx2 /home/hongxu/work/x264/x264-asan/common/x86/mc-c.c:772:1</div><div>    #1 0x74b89e in macroblock_tree_propagate /home/hongxu/work/x264/x264-asan/encoder/slicetype.c:1071:9</div><div>    #2 0x723183 in macroblock_tree /home/hongxu/work/x264/x264-asan/encoder/slicetype.c:1163:9</div><div>    #3 0x720338 in x264_8_slicetype_analyse /home/hongxu/work/x264/x264-asan/encoder/slicetype.c:1671:9</div><div>    #4 0x5a84c9 in x264_8_lookahead_get_frames /home/hongxu/work/x264/x264-asan/encoder/lookahead.c:245:13</div><div>    #5 0x57cd9e in x264_8_encoder_encode /home/hongxu/work/x264/x264-asan/encoder/encoder.c:3361:9</div><div>    #6 0x5fefeb in x264_stack_align (/home/hongxu/work/x264/x264-asan/install/bin/x264+0x5fefeb)</div><div><br></div><div>AddressSanitizer can not provide additional info.</div><div>SUMMARY: AddressSanitizer: SEGV /home/hongxu/work/x264/x264-asan/common/x86/mc-c.c:772:1 in mbtree_propagate_list_avx2</div><div>==17224==ABORTING</div><div>[1]    17224 abort      ./x264-asan/install/bin/x264 --threads 1 read_mc-c.c:772_1.avi -o /dev/null</div></div><div><br></div><div>$ ./x264-asan/install/bin/x264 --version</div><div><div>x264 0.157.2969 d4099dd</div><div>(libswscale 4.8.100)</div><div>(libavformat 57.83.100)</div><div>built on Apr  4 2019, gcc: 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)</div><div>x264 configuration: --chroma-format=all</div><div>libx264 configuration: --chroma-format=all</div><div>x264 license: GPL version 2 or later</div><div>libswscale/libavformat license: GPL version 2 or later</div></div><br clear="all"><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><font color="#313131" face="Arial, sans-serif"><span style="font-size:12px">Best Regards,</span></font><div><font color="#313131" face="Arial, sans-serif"><span style="font-size:12px">Hongxu</span></font></div></div></div></div></div></div></div></div></div></div></div></div>