[FFmpeg-devel] Array bug in aes.c

Alexander Strange astrange
Fri Jan 18 03:25:10 CET 2008


On Jan 17, 2008, at 9:21 PM, Michael Niedermayer wrote:

> On Thu, Jan 17, 2008 at 02:16:19PM -0800, Mike Melanson wrote:
>> This comes from my blog's comments:
>>  http://multimedia.cx/eggs/up-to-date-gcc/#comment-92872
>>
>> ================
>> Well, at least one of those warnings is an actual bug:
>> /tmp/fate/source/libavutil/aes.c:133: warning: array subscript is  
>> above
>> array bounds
>>
>> In aes.c:133:
>> if(!enc_multbl[0][sizeof(enc_multbl)/sizeof(enc_multbl[0][0])-1]){
>>
>
>> I take it this was meant:
>> if(!enc_multbl[0][sizeof(enc_multbl[0])/sizeof(enc_multbl[0][0])-1]){
>
> no, this would then be an actual bug
>
> how does one disable these warnings?
>
> [...]

If they're false they're bugs in gcc SVN, it's not in any release.
It can be turned off with -Warray-bounds.

I think all the extra warnings with -fstrict-aliasing are more
annoying, though.




More information about the ffmpeg-devel mailing list