Better fix for PR 20499, including preventing strlen from being called on an uninitia...
authorNick Clifton <nickc@redhat.com>
Tue, 23 Aug 2016 14:41:01 +0000 (15:41 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 23 Aug 2016 14:41:01 +0000 (15:41 +0100)
commit38334d6de448272c3bd831e3410dbc337fc2739d
tree7de75d65c49597548dd4423601bf52280aeac9e9
parente9d9abd7470ea500eb4e82567fff68e87a30efb9
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.
gprof/ChangeLog
gprof/corefile.c
This page took 0.024673 seconds and 4 git commands to generate.