diff options
author | Nick Clifton <nickc@redhat.com> | 2016-08-30 13:38:54 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2016-08-30 13:38:54 +0100 |
commit | 00927233079d1d65826fd611019e9167706b9ec6 (patch) | |
tree | c6807426548726e78bb0c0dafde5a25678189d33 /gprof/utils.c | |
parent | 8941017bc0226b60ce306d5271df15820ce66a53 (diff) | |
download | gdb-00927233079d1d65826fd611019e9167706b9ec6.zip gdb-00927233079d1d65826fd611019e9167706b9ec6.tar.gz gdb-00927233079d1d65826fd611019e9167706b9ec6.tar.bz2 |
Fix more potential seg-faults in gprof.
PR gprof/20499
* corefile.c (num_of_syms_in): Return an unsigned int.
(core_create_syms_from): Catch a possible integer overflow
computing the argument to xmalloc. Also allow for the possibility
that an integer overflow in num_of_syms_in means that less space
has been allocated than expected.
Diffstat (limited to 'gprof/utils.c')
0 files changed, 0 insertions, 0 deletions