]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Fix crash in gdb_rl_callback_handler
authorTom Tromey <tromey@adacore.com>
Mon, 15 Apr 2024 18:52:05 +0000 (12:52 -0600)
committerTom Tromey <tromey@adacore.com>
Mon, 15 Apr 2024 18:52:05 +0000 (12:52 -0600)
commitef076b0377c931c8743841572ad5eccafa48c30f
tree9a3986f133471748c979f8bd25fcc69d116ef10c
parent12406b2cdab40fd05df65c4fe4aabaf4882fcc8e
Fix crash in gdb_rl_callback_handler

commit bdcd50f9 ("Strip trailing newlines from input string")
introduced a crash in eof-exit.exp.  This patch fixes the problem by
adding a NULL check in the appropriate spot.

Regression tested on x86-64 Fedora 38.  I'm checking this in.
gdb/event-top.c