Check for NULL character before calling strchr.
authorAndrew Burgess <aburgess@broadcom.com>
Tue, 16 Jul 2013 21:12:14 +0000 (21:12 +0000)
committerAndrew Burgess <aburgess@broadcom.com>
Tue, 16 Jul 2013 21:12:14 +0000 (21:12 +0000)
commit5ea5559b9aab3618955d6d38934828e9d5749bea
tree9aa1ffc18e57611494e73af7b6685a96860667de
parent2c57100624571d93ebc965bed32b7d517a382e02
Check for NULL character before calling strchr.

  http://sourceware.org/ml/gdb-patches/2013-07/msg00322.html

gdb/ChangeLog

        * common/format.c (parse_format_string): Add checks for NULL
        character before calling strchr.

gdb/testsuite/ChangeLog

        * gdb.base/printcmds.exp (test_printf): Add tests for format
        strings with missing format specifier.
gdb/ChangeLog
gdb/common/format.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/printcmds.exp