Ticket #2310 (closed defect: invalid)
x264: x264_cqm_init access beyond array causes undefined behavior in gcc48
|Reported by:||Safari||Owned by:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
Summary of the bug:
can't x264 bugs be submitted with trac..? anyways...
i can get to 7, whereas quant4_mf quant4_bias0 quant4_mf dequant4_mf and unquant4_mf are defined as array , therefore undefined behavior happens with gcc-4.8-0.14.fc19 (infinite loop).
How to reproduce:
run x264 and it segfaults in x264_cqm_init.
small test case which causes infinite loop
int main(int argc, char *argv)
for(i = 0; i < 8; i++ )
fprintf(stderr, "i=%d\n", i);
quant4_mf[i] = (void*)0;
% ffmpeg -i input ... output ffmpeg version built on ...
Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.