diff options
author | Nick Clifton <nickc@redhat.com> | 2016-08-23 15:41:01 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2016-08-23 15:41:01 +0100 |
commit | 38334d6de448272c3bd831e3410dbc337fc2739d (patch) | |
tree | 7de75d65c49597548dd4423601bf52280aeac9e9 /gprof/ChangeLog | |
parent | e9d9abd7470ea500eb4e82567fff68e87a30efb9 (diff) | |
download | gdb-38334d6de448272c3bd831e3410dbc337fc2739d.zip gdb-38334d6de448272c3bd831e3410dbc337fc2739d.tar.gz gdb-38334d6de448272c3bd831e3410dbc337fc2739d.tar.bz2 |
Better fix for PR 20499, including preventing strlen from being called on an uninitialised name field.
PR gprof/20499
* corefile.c (BUFSIZE): Define.
(STR_BUFSIZE): Define.
(read_function_mappings): Use BUFSIZE and STR)BUFSIZE.
(num_of_syms_in): Move buf, address and name arrays out of
function and declare as static BUFSIZE arrays.
Use STR_BUFSIZE when scanning for name and address.
(core_create_syms_from): Revert previous delta. Instead
short circuit the parsing of a symbol if all three fields
could not be found.
Diffstat (limited to 'gprof/ChangeLog')
-rw-r--r-- | gprof/ChangeLog | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gprof/ChangeLog b/gprof/ChangeLog index eabc188..1081e8f 100644 --- a/gprof/ChangeLog +++ b/gprof/ChangeLog @@ -1,3 +1,16 @@ +2016-08-23 Nick Clifton <nickc@redhat.com> + + PR gprof/20499 + * corefile.c (BUFSIZE): Define. + (STR_BUFSIZE): Define. + (read_function_mappings): Use BUFSIZE and STR)BUFSIZE. + (num_of_syms_in): Move buf, address and name arrays out of + function and declare as static BUFSIZE arrays. + Use STR_BUFSIZE when scanning for name and address. + (core_create_syms_from): Revert previous delta. Instead + short circuit the parsing of a symbol if all three fields + could not be found. + 2016-08-22 Nick Clifton <nickc@redhat.com> PR gprof/20499 |