Wstringop-truncation-4.c
3.92 KB
-
Fix -Wstringop-overflow regression · f1acdcd0
we shouldn't claim string overflows for character arrays at end of structures; the code that tries to avoid these accidentally passed the address of the accessed member to array_at_struct_end_p(), but that one wants the component_ref or array_ref itself. Needs updating of one testcase that incorrectly expected warning to occur in this situation. From-SVN: r259083
Michael Matz committed