More signed overflow fixes
[deliverable/binutils-gdb.git] / libctf / ChangeLog
index 8f41ece32b071c16627b02f12fb7e63d46ba1fdc..ea34bae8560d0f76098f53314611d65056d338a0 100644 (file)
@@ -1,3 +1,80 @@
+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-
This page took 0.022915 seconds and 4 git commands to generate.