[PATCH v2 0/4] More portability fixes

Nick Alcock nick.alcock@oracle.com
Tue Jun 4 15:25:00 GMT 2019


This also fixes a use-after-free (well, free-before-initialization)
and a bug that leads to an accidentally different file format on
platforms where int is not 32 bits wide.

The last two patches are new or changed in this version. (Unchanged
patches are not denoted v2.)

Nick Alcock (4):
  libctf: fix the type of ctf_enum.cte_value
  libctf: fix use-after-free in function dumping
  libctf: look for BSD versus GNU qsort_r signatures
  libctf: work on platforms without O_CLOEXEC.

 include/ChangeLog                   |   4 +
 include/ctf.h                       |   2 +-
 libctf/ChangeLog                    |  29 ++++
 libctf/Makefile.am                  |   4 +-
 libctf/Makefile.in                  |  29 ++--
 libctf/config.h.in                  |  16 ++-
 libctf/configure                    | 198 ++++++++++++++++++++--------
 libctf/configure.ac                 |  60 ++++++++-
 libctf/ctf-archive.c                |   9 +-
 libctf/ctf-create.c                 |   2 +-
 libctf/ctf-decls.h                  |  43 +++++-
 libctf/ctf-dump.c                   |   2 +-
 libctf/{qsort_r.c => ctf-qsort_r.c} |   2 +-
 13 files changed, 313 insertions(+), 87 deletions(-)
 rename libctf/{qsort_r.c => ctf-qsort_r.c} (99%)

-- 
2.21.0.237.gd0cfaa883d



More information about the Binutils mailing list