aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.c
diff options
context:
space:
mode:
authorDaniel Starke <daniel-email@gmx.net>2025-03-04 22:50:11 +0100
committerSimon Marchi <simon.marchi@efficios.com>2025-03-05 10:51:29 -0500
commite283a286894dae2af87a66c1fc2620dfce27d93d (patch)
treed85a6c2b084188265d6865938ae9852a246f8c92 /gdb/ada-lang.c
parent4ad3a0115d6c542178cd3a0d9b2abdc58fd9ecbd (diff)
downloadbinutils-e283a286894dae2af87a66c1fc2620dfce27d93d.zip
binutils-e283a286894dae2af87a66c1fc2620dfce27d93d.tar.gz
binutils-e283a286894dae2af87a66c1fc2620dfce27d93d.tar.bz2
gdb: fix null pointer dereference on missing PATH variable
When running "show" with missing PATH variable a null pointer is being dereferenced in path_info(). path_command() correctly checks whether PATH has been set before using it. It then calls path_info() which retrieves the variable again but fails to perform the null pointer test on it. As a result, the application crashes with SIGSEGV on Windows for example. Fix this by handling the null pointer case in path_info() accordingly. Signed-off-by: Daniel Starke <daniel-email@gmx.net> Co-Authored-By: Simon Marchi <simon.marchi@efficios.com> Approved-By: Tom Tromey <tom@tromey.com> Change-Id: I41ef10f00802d3163793491454190008e78f5dc1
Diffstat (limited to 'gdb/ada-lang.c')
0 files changed, 0 insertions, 0 deletions