[FFmpeg-devel] possible NULL access in av_strlcpy.c
Zhang Rui
bbcallen at gmail.com
Wed Sep 25 04:49:12 CEST 2013
>> if (len <= size) {
>> //< crash here, even if dst=NULL, len=1, size=0
>> *dst = 0;
>
> am i missing something or is this simply a compiler bug ?
>
> and if its a compiler bug, why do you post that to ffmpeg-devel
> we dont use -fmodulo-sched -fmodulo-sched-allow-regmoves ?
No, you are not missing anything.
There is no doubt the bug is caused by the gcc compiler,
since NDK gcc4.7 according to my test.
>> "if(dst && len <= size)" can also fix this issue with "-fmodulo-sched" enabled.
I just wanted to make a point that there is a workaround.
Thanks for your reply.
Best regards.
More information about the ffmpeg-devel
mailing list