Fix access violation when parsing a corrupt IEEE binary.
[deliverable/binutils-gdb.git] / libiberty / ChangeLog
index eb966741e967ca27987ad461297336af499acca0..4b19fef64f9c62ba7c158008d877e9a8beb849bd 100644 (file)
@@ -1,3 +1,198 @@
+2017-05-31  DJ Delorie  <dj@redhat.com>
+
+       * configure.ac (strnlen): Add to AC_CHECK_DECLS.
+       * configure: Likewise.
+       * config.in: Add HACE_DECL_STRNLEN.
+
+2017-05-31  Eli Zaretskii  <eliz@gnu.org>
+
+       * waitpid.c (wait) [__MINGW32__]: Define as a macro
+       that calls _cwait, so that this function works on MinGW.
+
+2017-03-27  Pedro Alves  <palves@redhat.com>
+
+       * cp-demint.c (cplus_demangle_fill_component): Handle
+       DEMANGLE_COMPONENT_RVALUE_REFERENCE.
+
+2017-03-12  Mark Wielaard  <mark@klomp.org>
+
+       * cp-demangle.c (cplus_demangle_fill_name): Initialize
+       demangle_component d_printing.
+       (cplus_demangle_fill_extended_operator): Likewise.
+       (cplus_demangle_fill_ctor): Likewise.
+       (cplus_demangle_fill_dtor): Likewise.
+
+2017-03-08  Mark Wielaard  <mark@klomp.org>
+
+       PR demangler/70909
+       PR demangler/67264
+       * cp-demangle.c: Fix endless recursion. Pass
+       struct demangle_component as non const.
+       (d_make_empty): Initialize variable.
+       (d_print_comp_inner): Limit recursion.
+       (d_print_comp): Decrement variable.
+       * cp-demint.c (cplus_demangle_fill_component): Initialize
+       variable.
+       (cplus_demangle_fill_builtin_type): Likewise.
+       (cplus_demangle_fill_operator): Likewise.
+       * testsuite/demangle-expected: Add tests.
+
+2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
+
+       PR PR c++/70182
+       * cp-demangle.c (d_unqualified_name): Handle "on" for
+       operator names.
+       * testsuite/demangle-expected: Add tests.
+
+2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
+
+       PR c++/77489
+       * cp-demangle.c (d_discriminator): Handle discriminator >= 10.
+       * testsuite/demangle-expected: Add tests for discriminator.
+
+2017-01-04  Jakub Jelinek  <jakub@redhat.com>
+
+       Update copyright years.
+
+2017-01-04  Alan Modra  <amodra@gmail.com>
+
+       * Makefile.in (configure_deps): Update.
+       * configure: Regenerate.
+
+2016-12-13  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c++/78761
+       * cp-demangle.c (cplus_demangle_type): Demangle Dc as decltype(auto).
+       * testsuite/demangle-expected: Add test for decltype(auto).
+
+2016-12-12  Nathan Sidwell  <nathan@acm.org>
+
+       PR c++/78252
+       * cp-demangle.c (struct d_print_info): Add is_lambda_arg field.
+       (d_print_init): Initialize it.
+       (d_print_comp_inner) <DEMANGLE_COMPONENT_TEMPLATE_PARAM>: Check
+       is_lambda_arg for auto.
+       <DEMANGLE_COMPONENT_REFERENCE,
+       DEMANGLE_COMPONENT_RVALUE_REFERENCE>: Skip smashing check when
+       is_lambda_arg.
+       <DEMANGLE_COMPONENT_LAMBDA>: Increment is_lambda_arg around arg
+       printing.
+       * testsuite/demangle-expected: Add lambda auto mangling cases. 
+
+2016-12-06  DJ Delorie  <dj@redhat.com>
+
+       * argv.c (expandargv): Check for directories passed as @-files.
+
+2016-11-30  David Malcolm  <dmalcolm@redhat.com>
+
+       PR c/78498
+       * strndup.c (strlen): Delete decl.
+       (strnlen): Add decl.
+       (strndup): Call strnlen rather than strlen.
+       * xstrndup.c (xstrndup): Likewise.
+
+2016-11-29  Nathan Sidwell  <nathan@acm.org>
+
+       * cp-demangle.c (d_print_comp_inner): Fix parameter indentation.
+
+2016-11-03  David Tolnay <dtolnay@gmail.com>
+           Mark Wielaard  <mark@klomp.org>
+
+       * Makefile.in (CFILES): Add rust-demangle.c.
+       (REQUIRED_OFILES): Add rust-demangle.o.
+       * cplus-dem.c (libiberty_demanglers): Add rust_demangling case.
+       (cplus_demangle): Handle RUST_DEMANGLING.
+       (rust_demangle): New function.
+       * rust-demangle.c: New file.
+       * testsuite/Makefile.in (really-check): Add check-rust-demangle.
+       (check-rust-demangle): New rule.
+       * testsuite/rust-demangle-expected: New file.
+
+2016-11-15  Mark Wielaard  <mark@klomp.org>
+
+       * cp-demangle.c (d_expression_1): Make sure third expression
+       exists for ?: and fold expressions.
+       * testsuite/demangle-expected: Add examples of strings that could
+       crash the demangler because of missing expression.
+
+2016-11-14  Mark Wielaard  <mark@klomp.org>
+
+       * cplus-dem.c (demangle_signature): After 'H', template function,
+       no success and don't advance position if end of string reached.
+       (demangle_template): After 'z', template name, return zero on
+       premature end of string.
+       (gnu_special): Guard strchr against searching for zero characters.
+       (do_type): If member, only advance mangled string when 'F' found.
+       * testsuite/demangle-expected: Add examples of strings that could
+       crash the demangler by reading past end of input.
+
+2016-11-06  Mark Wielaard  <mark@klomp.org>
+
+       * configure.ac (ac_libiberty_warn_cflags): Add -Wshadow=local.
+       * configure: Regenerated.
+
+2016-11-07  Jason Merrill  <jason@redhat.com>
+
+       * cp-demangle.c (is_fnqual_component_type): New.
+       (d_encoding, d_print_comp_inner, d_print_mod_list): Use it.
+       (FNQUAL_COMPONENT_CASE): New.
+       (d_make_comp, has_return_type, d_print_comp_inner)
+       (d_print_function_type): Use it.
+       (next_is_type_qual): New.
+       (d_cv_qualifiers, d_print_mod): Handle noexcept and throw-spec.
+
+2016-11-02  Mark Wielaard  <mjw@redhat.com>
+
+       * cplus-dem.c (demangle_signature): Move fall through comment.
+       (demangle_fund_type): Add fall through comment between 'G' and 'I'.
+       * hashtab.c (iterative_hash): Add fall through comments.
+       * regex.c (regex_compile): Add Fall through comment after '+'/'?'.
+       (byte_re_match_2_internal): Add Fall through comment after jump_n.
+       Change "Note fall through" to "Fall through".
+       (common_op_match_null_string_p): Return false after set_number_at
+       instead of fall through.
+
+2016-11-01  Jason Merrill  <jason@redhat.com>
+
+       * cp-demangle.c (d_ctor_dtor_name): Handle inheriting constructor.
+
+2016-10-31  Mark Wielaard  <mjw@redhat.com>
+
+       * cplus-dem.c (ada_demangle): Initialize demangled to NULL and
+       XDELETEVEC demangled when unknown.
+
+2016-09-19  Andrew Stubbs  <ams@codesourcery.com>
+
+       * pex-win32.c (argv_to_cmdline): Quote zero-length parameters.
+       * testsuite/test-pexecute.c (main): Insert check for zero-length parameters.
+
+2016-09-10  Mark Wielaard  <mjw@redhat.com>
+
+       * cp-demangle.c (d_substitution): Change struct demangle_component
+       variable name from c to dc.
+
+2016-08-12  Marek Polacek  <polacek@redhat.com>
+
+       PR c/7652
+       * cp-demangle.c (d_print_mod): Add FALLTHRU.
+
+2016-08-04  Marcel Böhme  <boehme.marcel@gmail.com>
+
+       PR c++/71696
+       * cplus-dem.c: Prevent infinite recursion when there is a cycle
+       in the referencing of remembered mangled types.
+       (work_stuff): New stack to keep track of the remembered mangled
+       types that are currently being processed.
+       (push_processed_type): New method to push currently processed
+       remembered type onto the stack.
+       (pop_processed_type): New method to pop currently processed
+       remembered type from the stack.
+       (work_stuff_copy_to_from): Copy values of new variables.
+       (delete_non_B_K_work_stuff): Free stack memory.
+       (demangle_args): Push/Pop currently processed remembered type.
+       (do_type): Do not demangle a cyclic reference and push/pop
+       referenced remembered type.
+
 2016-07-29  Aldy Hernandez  <aldyh@redhat.com>
 
        * make-relative-prefix.c (make_relative_prefix_1): Fall back to
        (d_template_args_1): Split out from d_template_args.
        (d_args_length): New.
 
-2016-07-13  Marcel BÃ\83hme  <boehme.marcel@gmail.com>
+2016-07-13  Marcel BÃhme  <boehme.marcel@gmail.com>
 
        PR c++/70926
        * cplus-dem.c: Handle large values and overflow when demangling
 
        PR other/61321
        PR other/61233
-       * demangle.h (enum demangle_component_type)
-       <DEMANGLE_COMPONENT_CONVERSION>: New value.
        * cp-demangle.c (d_demangle_callback, d_make_comp): Handle
        DEMANGLE_COMPONENT_CONVERSION.
        (is_ctor_dtor_or_conversion): Handle DEMANGLE_COMPONENT_CONVERSION
        (d_print_mod_list, d_print_mod, d_print_function_type)
        (is_ctor_or_dtor): Handle DEMANGLE_COMPONENT_TRANSACTION_SAFE.
 
-2015-09-30  Nick Clifton  <nickc@redhat.com>
-
-       Import the following patches from the GCC mainline:
-
-       2015-08-15  Ian Lance Taylor  <iant@google.com>
+2015-08-15  Ian Lance Taylor  <iant@google.com>
 
        * cp-demangle.c (d_abi_tags): Preserve di->last_name across any
        ABI tags.
        * testsuite/d-demangle-expected: Update float and complex literal
        tests to check correct hexadecimal demangling.
 
-2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
-
-       * configure: Regenerated.
-
 2015-07-13  Mikhail Maltsev  <maltsevm@gmail.com>
 
        * cp-demangle.c (d_dump): Fix syntax error.
        * functions.texi: Regenerate.
 
 2014-12-11  Uros Bizjak  <ubizjak@gmail.com>
-           Ben Elliston  <bje@au.ibm.com>
-           Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
+            Ben Elliston  <bje@au.ibm.com>
+            Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
 
        * xvasprintf.c: New file.
        * vprintf-support.h: Likewise.
        (d_ctor_dtor_name): Handle unified ctor/dtor.
 
 2013-11-22  Cary Coutant  <ccoutant@google.com>
-
+    
        PR other/59195
        * cp-demangle.c (struct d_info_checkpoint): New struct.
        (struct d_print_info): Add current_template field.
 2013-05-31  Matt Burgess <matthew@linuxfromscratch.org>
 
        PR other/56780
-       * libiberty/configure.ac: Move test for --enable-install-libiberty
+       * configure.ac: Move test for --enable-install-libiberty
        outside of the 'with_target_subdir' test so that it actually gets
        run.  Add output messages to show the test result.
-       * libiberty/configure: Regenerate.
-       * libiberty/Makefile.in (install_to_libdir): Place the
+       * configure: Regenerate.
+       * Makefile.in (install_to_libdir): Place the
        installation of the libiberty library in the same guard as that
        used for the headers to prevent it being installed unless
        requested via --enable-install-libiberty.
        Daniel Jacobowitz  <dan@codesourcery.com>
        Pedro Alves  <pedro@codesourcery.com>
 
-       libiberty/
        * argv.c (consume_whitespace): New function.
        (only_whitespace): New function.
        (buildargv): Always use ISSPACE by calling consume_whitespace.
 
 2009-04-07  Arnaud Patard <apatard@mandriva.com>
 
-       * libiberty/configure.ac: Fix Linux/MIPS matching rule.
-       * libiberty/configure: Regenerate.
+       * configure.ac: Fix Linux/MIPS matching rule.
+       * configure: Regenerate.
 
 2009-03-27  Ian Lance Taylor  <iant@google.com>
 
 
 2008-04-21  Aurelien Jarno  <aurelien@aurel32.net>
 
-       * libiberty/configure.ac: use -fPIC on Linux/MIPS hosts.
-       * libiberty/configure: Regenerate.
+       * configure.ac: use -fPIC on Linux/MIPS hosts.
+       * configure: Regenerate.
 
 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
 
        that are locale-independent.
        * Makefile.in (filename_cmp.o): Add dependency on safe-ctype.h.
 
-2007-04-11  Thomas Neumann  tneumann@users.sourceforge.net
+2007-04-11  Thomas Neumann  <tneumann@users.sourceforge.net>
 
        * argv.c: Use ANSI C declarations.
        * make-relative-prefix.c: Likewise.
 
 2003-12-15  Brendan Kehoe  <brendan@zen.org>
 
-       * libiberty/Makefile.in (floatformat.o): Add dependency on
+       * Makefile.in (floatformat.o): Add dependency on
        config.h to accompany change of 2003-12-03.
 
 2003-12-15  Ian Lance Taylor  <ian@wasabisystems.com>
 
 2002-10-06  Andreas Jaeger  <aj@suse.de>
 
-       * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
+       * cplus-dem.c (ada_demangle): Get rid of unneeded
        variable and of strict-aliasing warning.
        (grow_vect): Use char as first parameter.
 
 
 2002-01-31  Adam Megacz  <adam@xwt.org>
 
-       * gcc/libiberty/configure.in: Treat mingw the same as cywin
+       * configure.in: Treat mingw the same as cywin
        wrt HAVE_SYS_ERRLIST.
 
 2002-01-30  Phil Edwards  <pme@gcc.gnu.org>
@@ -5159,8 +5343,8 @@ Tue Aug 21 12:35:04 2001  Christopher Faylor <cgf@cygnus.com>
 2001-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
            John David Anglin  <dave@hiauly1.hia.nrc.ca>
 
-       * libiberty/lbasename.c: New file.
-       * libiberty/Makefile.in: Update for lbasename.
+       * lbasename.c: New file.
+       * Makefile.in: Update for lbasename.
 
 2001-03-06  Zack Weinberg  <zackw@stanford.edu>
 
@@ -5533,13 +5717,13 @@ Tue Aug 21 12:35:04 2001  Christopher Faylor <cgf@cygnus.com>
 
 2000-08-24  Greg McGary  <greg@mcgary.org>
 
-       * libiberty/random.c (end_ptr): Revert previous change.
+       * random.c (end_ptr): Revert previous change.
 
 2000-08-24  Greg McGary  <greg@mcgary.org>
 
-       * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
+       * cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
        demangle_expression, demangle_function_name): Use ARRAY_SIZE.
-       * libiberty/random.c (end_ptr): Likewise.
+       * random.c (end_ptr): Likewise.
 
 2000-08-23  Alex Samuel  <samuel@codesourcery.com>
 
This page took 0.031614 seconds and 4 git commands to generate.