From 00927233079d1d65826fd611019e9167706b9ec6 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 30 Aug 2016 13:38:54 +0100 Subject: 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. --- gprof/ChangeLog | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gprof/ChangeLog') diff --git a/gprof/ChangeLog b/gprof/ChangeLog index 1081e8f..e5afbf6 100644 --- a/gprof/ChangeLog +++ b/gprof/ChangeLog @@ -1,3 +1,12 @@ +2016-08-30 Nick Clifton + + 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. + 2016-08-23 Nick Clifton PR gprof/20499 -- cgit v1.1