This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Fix potential NULL pointer dereference
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Wed, 26 Oct 2016 17:08:20 -0400
- Subject: [binutils-gdb] Fix potential NULL pointer dereference
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT b5e1db87897cabfd9beb8b1bd49f7d965c0f2607 ***
Author: Luis Machado <lgustavo@codesourcery.com>
Branch: master
Commit: b5e1db87897cabfd9beb8b1bd49f7d965c0f2607
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.