Fix potential NULL pointer dereference
authorLuis Machado <lgustavo@codesourcery.com>
Mon, 24 Oct 2016 22:51:33 +0000 (17:51 -0500)
committerLuis Machado <lgustavo@codesourcery.com>
Mon, 24 Oct 2016 22:51:33 +0000 (17:51 -0500)
commitb5e1db87897cabfd9beb8b1bd49f7d965c0f2607
tree503fc7560741f6be97831e11ee122d628a2259e1
parent010ece9c47f1ac08c9436b133a74472713dd709b
Fix potential NULL pointer dereference

This patch addresses a potential NULL pointer dereference when we try to
duplicate a string. The input pointer can be NULL and that may lead to
crashes. We simply add a check for that case.

gdb/ChangeLog:
2016-10-24  Luis Machado  <lgustavo@codesourcery.com>

* exec.c (exec_file_locate_attach): Prevent NULL pointer dereference
when duplicating a string.
gdb/ChangeLog
gdb/exec.c
This page took 0.025538 seconds and 4 git commands to generate.