Fix more potential seg-faults in gprof.
[external/binutils.git] / gprof / ChangeLog
index d08636f..e5afbf6 100644 (file)
@@ -1,48 +1,66 @@
-2013-11-21  Conrad Hoffmann  <ch@bitfehler.net>
+2016-08-30  Nick Clifton  <nickc@redhat.com>
 
-       * gprof.c (inline_file_names): New variable.
-       (OPTION_INLINE_FILE_NAMES): Define.
-       (long_options): Add --inline-file-names.
-       (usage): Likewise.
-       (main): Process --inline-file-names.
-       * gprof.h: Add prototype for inline_file_names.
-       * utils.c (print_name_only): Handle inline_file_names.
-       * gprof.texi: Document new command line option.
+       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.
 
-2013-11-02  Alan Modra  <amodra@gmail.com>
+2016-08-23  Nick Clifton  <nickc@redhat.com>
 
-       * Makefile.am (.m.c): Fix input and output file specification.
-       * Makefile.in: Regenerate.
+       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.
 
-2013-10-09  Nick Clifton  <nickc@redhat.com>
+2016-08-22  Nick Clifton  <nickc@redhat.com>
 
-       PR gprof/16027
-       * source.c (annotate_source): Close ifp.
-       * corefile.c (read_function_mappings): Close file.
+       PR gprof/20499
+       * corefile.c (core_create_syms_from): Avoid walking off the end of
+       the symbol table.
 
-2013-09-20  Alan Modra  <amodra@gmail.com>
+2016-07-21  H.J. Lu  <hongjiu.lu@intel.com>
 
-       * configure: Regenerate.
+       * configure: Regenerated.
+
+2016-04-20  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
 
-2013-08-05  John Tytgat  <john@bass-software.com>
+       * basic_blocks.c: Update old style function definitions.
+       * cg_arcs.c: Likewise.
+       * cg_print.c: Likewise.
+       * gen-c-prog.awk: Likewise.
+       * gmon_io.c: Likewise.
+       * hertz.c: Likewise.
+       * hist.c: Likewise.
+       * sym_ids.c: Likewise.
 
-       * po/POTFILES.in: Regenerate.
+2016-04-15  H.J. Lu  <hongjiu.lu@intel.com>
 
-2013-05-24  Alan Modra  <amodra@gmail.com>
+       * Makefile.in: Regenerated with automake 1.11.6.
+       * aclocal.m4: Likewise.
 
-       * aarch64.c (aarch64_find_call): Promote to bfd_vma before sign
-       extending.
+2016-03-22  Nick Clifton  <nickc@redhat.com>
+
+       * configure: Regenerate.
+
+2016-01-17  Alan Modra  <amodra@gmail.com>
+
+       * configure: Regenerate.
 
-2013-05-22  Venkataramanan Kumar  <Venkataramanan.kumar@linaro.org>
+2016-01-01  Alan Modra  <amodra@gmail.com>
 
-       * aarch64.c: New file.
-       * corefile.c (find_call): Call aarch64_find_call for bfd_arch_aarch64.
-       * Makefile.am (sources): Add aarch64.c.
-       * Makefile.in: Regenerate.
+       Update year range in copyright notice of all files.
 
-For older changes see ChangeLog-2012
+For older changes see ChangeLog-2015
 \f
-Copyright (C) 2013 Free Software Foundation, Inc.
+Copyright (C) 2016 Free Software Foundation, Inc.
 
 Copying and distribution of this file, with or without modification,
 are permitted in any medium without royalty provided the copyright