Fix an illegal memory access triggered when trying to examine an input file containin...
[deliverable/binutils-gdb.git] / libctf / ChangeLog
index 106955385dbeb947845db0ec06382999db40fda0..a2358fd65161fcb4a7970bb50aebfa1826666910 100644 (file)
@@ -1,3 +1,95 @@
+2020-01-05  Joel Brobecker  <brobecker@adacore.com>
+
+       PR binutils/25155:
+       * configure.ac: Add AC_CHECK_DECLS([asprintf]).
+       * configure, config.h.in: Regenerate.
+
+2020-01-01  Alan Modra  <amodra@gmail.com>
+
+       Update year range in copyright notice of all files.
+
+2019-10-16  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * swap.h (bswap_16, bswap_32, bswap_64): Make static.
+
+2019-09-30  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-open.c (ctf_bufopen_internal): Fix tabdamage.
+       * ctf-types.c (ctf_type_lname): Likewise.
+
+2019-09-23  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-open.c (ctf_import): Do not leak a ctf_file_t ref on every
+       ctf_import after the first for a given file.
+
+2019-09-23  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-impl.h (ctf_str_append_noerr): Declare.
+       * ctf-util.c (ctf_str_append_noerr): Define in terms of
+       ctf_str_append.
+       * ctf-dump.c (str_append): New, call it.
+       (ctf_dump_format_type): Use str_append, not ctf_str_append.
+       (ctf_dump_label): Likewise.
+       (ctf_dump_objts): Likewise.
+       (ctf_dump_funcs): Likewise.
+       (ctf_dump_var): Likewise.
+       (ctf_dump_member): Likewise.
+       (ctf_dump_type): Likewise.
+       (ctf_dump): Likewise.
+
+2019-09-23  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-impl.h (ctf_alloc): Remove.
+       (ctf_free): Likewise.
+       (ctf_strdup): Likewise.
+       * ctf-subr.c (ctf_alloc): Remove.
+       (ctf_free): Likewise.
+       * ctf-util.c (ctf_strdup): Remove.
+
+       * ctf-create.c (ctf_serialize): Use malloc, not ctf_alloc; free, not
+       ctf_free; strdup, not ctf_strdup.
+       (ctf_dtd_delete): Likewise.
+       (ctf_dvd_delete): Likewise.
+       (ctf_add_generic): Likewise.
+       (ctf_add_function): Likewise.
+       (ctf_add_enumerator): Likewise.
+       (ctf_add_member_offset): Likewise.
+       (ctf_add_variable): Likewise.
+       (membadd): Likewise.
+       (ctf_compress_write): Likewise.
+       (ctf_write_mem): Likewise.
+       * ctf-decl.c (ctf_decl_push): Likewise.
+       (ctf_decl_fini): Likewise.
+       (ctf_decl_sprintf): Likewise.  Check for OOM.
+       * ctf-dump.c (ctf_dump_append): Use malloc, not ctf_alloc; free, not
+       ctf_free; strdup, not ctf_strdup.
+       (ctf_dump_free): Likewise.
+       (ctf_dump): Likewise.
+       * ctf-open.c (upgrade_types_v1): Likewise.
+       (init_types): Likewise.
+       (ctf_file_close): Likewise.
+       (ctf_bufopen_internal): Likewise.  Check for OOM.
+       (ctf_parent_name_set): Likewise: report the OOM to the caller.
+       (ctf_cuname_set): Likewise.
+       (ctf_import): Likewise.
+       * ctf-string.c (ctf_str_purge_atom_refs): Use malloc, not ctf_alloc;
+       free, not ctf_free; strdup, not ctf_strdup.
+       (ctf_str_free_atom): Likewise.
+       (ctf_str_create_atoms): Likewise.
+       (ctf_str_add_ref_internal): Likewise.
+       (ctf_str_remove_ref): Likewise.
+       (ctf_str_write_strtab): Likewise.
+
+2019-08-09  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-types.c (ctf_type_encoding): Fix the dynamic case to
+       work right for non-int/fps.
+
+2019-08-08  Nick Alcock  <nick.alcock@oracle.com>
+
+       * ctf-types.c (ctf_type_name): Don't strlen a potentially-
+       null pointer.
+
 2019-08-07  Nick Alcock  <nick.alcock@oracle.com>
 
        * ctf-impl.h (ctf_file_t) <ctf_add_processing>: New.
This page took 0.023376 seconds and 4 git commands to generate.