cppcheck Sept 18
James Mckenzie
jjmckenzie51 at earthlink.net
Sun Sep 20 13:04:23 CDT 2009
>[/home/cahrendt/wine-git/dlls/rpcrt4/tests/server.c:1189]: (possible
>error) Array index out of bounds
>
>This one is a false positive, it uses FIELD_OFFSET(cs_t, ca[5]),
>and it found an array:
>int ca[5];
>
Actually, if this is a zero offset array, this is out of bounds. It might be better to extend ca by one and eliminate the possibility of the overflow and it only uses one more int worth of space...
James McKenzie
More information about the wine-devel
mailing list