aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorLuis Machado <lgustavo@codesourcery.com>2016-10-24 17:51:33 -0500
committerLuis Machado <lgustavo@codesourcery.com>2016-10-24 17:51:33 -0500
commitb5e1db87897cabfd9beb8b1bd49f7d965c0f2607 (patch)
tree503fc7560741f6be97831e11ee122d628a2259e1 /gdb/ChangeLog
parent010ece9c47f1ac08c9436b133a74472713dd709b (diff)
downloadfsf-binutils-gdb-b5e1db87897cabfd9beb8b1bd49f7d965c0f2607.zip
fsf-binutils-gdb-b5e1db87897cabfd9beb8b1bd49f7d965c0f2607.tar.gz
fsf-binutils-gdb-b5e1db87897cabfd9beb8b1bd49f7d965c0f2607.tar.bz2
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.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 388cc1f..43175ff 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2016-10-24 Luis Machado <lgustavo@codesourcery.com>
+ * exec.c (exec_file_locate_attach): Prevent NULL pointer dereference
+ when duplicating a string.
+
+2016-10-24 Luis Machado <lgustavo@codesourcery.com>
+
* exec.c (exception_print_same): Fix string comparison to use
statically-allocated ones.