c-common.c (check_format_types): Check for writing through a NULL pointer argument.
authorJoseph Myers <jsm28@cam.ac.uk>
Wed, 18 Oct 2000 16:09:35 +0000 (17:09 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Wed, 18 Oct 2000 16:09:35 +0000 (17:09 +0100)
commit81cf47b209c433b6cb1ccffb030789a06ffa5c16
tree85c536f50f4a4636eb737ad764e804903e9b46cd
parent27c35f4b2435bc05271dca75ec26a585e6853f4a
c-common.c (check_format_types): Check for writing through a NULL pointer argument.

* c-common.c (check_format_types): Check for writing through a
NULL pointer argument.

testsuite:
* gcc.dg/c90-printf-1.c, gcc.dg/c90-scanf-1.c: Add tests for
writing through null pointers; remove comment about testing
unterminated strings.

From-SVN: r36936
gcc/ChangeLog
gcc/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/c90-printf-1.c
gcc/testsuite/gcc.dg/c90-scanf-1.c