Re: Question about GCC not warning for some noncompliant SEI CERT C code examples

2019-05-30 Thread Jeff Law
On 5/30/19 8:28 AM, Martin Sebor wrote: > On 5/30/19 3:12 AM, Fredrik Hederstierna wrote: >> Hi >> >> When reading the SEI CERT C Coding Standard rules, looking at >> "DCL30-C. Declare objects with appropriate storage durations" >> it seem like GCC does not warn in compile-time for some noncomplian

Re: Question about GCC not warning for some noncompliant SEI CERT C code examples

2019-05-30 Thread Martin Sebor
On 5/30/19 3:12 AM, Fredrik Hederstierna wrote: Hi When reading the SEI CERT C Coding Standard rules, looking at "DCL30-C. Declare objects with appropriate storage durations" it seem like GCC does not warn in compile-time for some noncompliant examples. I know eg AddressSanitizer and several ru

Question about GCC not warning for some noncompliant SEI CERT C code examples

2019-05-30 Thread Fredrik Hederstierna
Hi When reading the SEI CERT C Coding Standard rules, looking at "DCL30-C. Declare objects with appropriate storage durations" it seem like GCC does not warn in compile-time for some noncompliant examples. I know eg AddressSanitizer and several runtime running tools finds these bugs, but it would