binutils-gdb/libctf
Torbjörn SVENSSON 998a4f589d libctf: Sanitize error types for PR 30836
Made sure there is no implicit conversion between signed and unsigned
return value for functions setting the ctf_errno value.
An example of the problem is that in ctf_member_next, the "offset" value
is either 0L or (ctf_id_t)-1L, but it should have been 0L or -1L.
The issue was discovered while building a 64 bit ld binary to be
executed on the Windows platform.
Example object file that demonstrates the issue is attached in the PR.

libctf/
	Affected functions adjusted.

Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Co-Authored-By: Yvan ROUX <yvan.roux@foss.st.com>
2023-10-17 17:31:20 +02:00
..
doc
testsuite
.gitignore
aclocal.m4
ChangeLog
ChangeLog-2020
config.h.in
configure regen config 2023-08-12 10:27:57 +09:30
configure.ac
ctf-archive.c
ctf-create.c libctf: Sanitize error types for PR 30836 2023-10-17 17:31:20 +02:00
ctf-decl.c
ctf-decls.h
ctf-dedup.c libctf: Sanitize error types for PR 30836 2023-10-17 17:31:20 +02:00
ctf-dump.c
ctf-endian.h
ctf-error.c
ctf-hash.c
ctf-impl.h libctf: Sanitize error types for PR 30836 2023-10-17 17:31:20 +02:00
ctf-inlines.h libctf: Sanitize error types for PR 30836 2023-10-17 17:31:20 +02:00
ctf-intl.h
ctf-labels.c
ctf-link.c libctf: Sanitize error types for PR 30836 2023-10-17 17:31:20 +02:00
ctf-lookup.c libctf: Sanitize error types for PR 30836 2023-10-17 17:31:20 +02:00
ctf-open-bfd.c
ctf-open.c
ctf-qsort_r.c
ctf-serialize.c
ctf-sha1.c
ctf-sha1.h
ctf-string.c
ctf-subr.c
ctf-types.c libctf: Sanitize error types for PR 30836 2023-10-17 17:31:20 +02:00
ctf-util.c libctf: Sanitize error types for PR 30836 2023-10-17 17:31:20 +02:00
elf.h
libctf.ver Update year range in copyright notice of binutils files 2023-01-01 21:50:11 +10:30
Makefile.am
Makefile.in
NEWS
swap.h