Re: gcc fixed size char array initialization bug - known?
From: Jan Engelhardt
Date: Fri Aug 03 2007 - 03:56:40 EST
On Aug 3 2007 01:30, Guennadi Liakhovetski wrote:
>On Fri, 3 Aug 2007, Al Viro wrote:
>
>> It doesn't change the fact that use of c[4] or strlen(c) or strcpy(..., c)
>> means nasal demon country for you.
>
>Haha, funny. You, certainly, may think whatever you want, I'm anyway
>greatful to you and to all the rest for the trouble you took to find THE
>quote that actually answers the question.
So back to the topic - if you want to check whether the kernel
'accidentally' uses
char foo[4] = "abcd";
change gcc or sparse to warn about this and then sort out the pieces
which are good. :)
Jan
--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/