Partially revert previous delta - move limit testing code to first scan over symbol...
authorNick Clifton <nickc@redhat.com>
Tue, 30 Aug 2016 12:51:43 +0000 (13:51 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 30 Aug 2016 12:51:43 +0000 (13:51 +0100)
commitc616591359a014fcfdb5acb48e70ecda0823fb46
tree3c06960c3eed4747c00dc38455b7faa36a63d60f
parent00927233079d1d65826fd611019e9167706b9ec6
Partially revert previous delta - move limit testing code to first scan over symbol file.

PR gprof/20499
* corefile.c (num_of_syms_in): Return an unsigned int.
Fail if the count exceeds the maximum possible allocatable size.
(core_create_syms_from): Exit early if num_of_syms_in returns a
failure code.
gprof/ChangeLog
gprof/corefile.c