This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Fix obvious gotcha in string comparison
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Wed, 26 Oct 2016 16:32:51 -0400
- Subject: [binutils-gdb] Fix obvious gotcha in string comparison
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 010ece9c47f1ac08c9436b133a74472713dd709b ***
Author: Luis Machado <lgustavo@codesourcery.com>
Branch: master
Commit: 010ece9c47f1ac08c9436b133a74472713dd709b
Fix obvious gotcha in string comparison
This patch fixes a gotcha when comparing exception's messages in
exception_print_same. It should've used the statically-allocated
string versions msg1 and msg2 instead.
As is, it could lead to crashes.
gdb/ChangeLog:
2016-10-24 Luis Machado <lgustavo@codesourcery.com>
* exec.c (exception_print_same): Fix string comparison to use
statically-allocated ones.