binutils-gdb/libctf
Nick Alcock 0bd65ce30a libctf: don't dereference out-of-bounds locations in the qualifier hashtab
isqualifier, which is used by ctf_lookup_by_name to figure out if a
given word in a type name is a qualifier, takes the address of a
possibly out-of-bounds location before checking its bounds.

In any reasonable compiler this will just lead to a harmless address
computation that is then discarded if out-of-bounds, but it's still
undefined behaviour and the sanitizer rightly complains.

libctf/ChangeLog
2021-03-25  Nick Alcock  <nick.alcock@oracle.com>

	PR libctf/27628
	* ctf-lookup.c (isqualifier): Don't dereference out-of-bounds
	qhash values.
2021-03-25 16:32:49 +00:00
..
testsuite libctf: eliminate dtd_u, part 5: structs / unions 2021-03-18 12:40:40 +00:00
.gitignore
aclocal.m4
ChangeLog libctf: don't dereference out-of-bounds locations in the qualifier hashtab 2021-03-25 16:32:49 +00:00
ChangeLog-2020
config.h.in
configure
configure.ac
ctf-archive.c libctf: fix GNU style for do {} while 2021-03-18 12:37:55 +00:00
ctf-create.c libctf: eliminate dtd_u, part 5: structs / unions 2021-03-18 12:40:40 +00:00
ctf-decl.c
ctf-decls.h
ctf-dedup.c libctf: a couple of small error-handling fixes 2021-03-18 12:40:41 +00:00
ctf-dump.c libctf, dump: do not emit size or alignment if it would error 2021-03-25 16:32:46 +00:00
ctf-endian.h
ctf-error.c
ctf-hash.c libctf: do not corrupt strings across ctf_serialize 2021-03-18 12:40:40 +00:00
ctf-impl.h Provide an inline startswith function in bfd.h 2021-03-21 23:00:32 +10:30
ctf-inlines.h
ctf-intl.h
ctf-labels.c
ctf-link.c
ctf-lookup.c libctf: don't dereference out-of-bounds locations in the qualifier hashtab 2021-03-25 16:32:49 +00:00
ctf-open-bfd.c libctf: make ctf_bfdopen_ctfsect a debugger entry point 2021-03-25 16:32:49 +00:00
ctf-open.c libctf: a couple of small error-handling fixes 2021-03-18 12:40:41 +00:00
ctf-qsort_r.c
ctf-serialize.c libctf, serialize: functions with no args have a NULL dtd_vlen 2021-03-25 16:32:48 +00:00
ctf-sha1.c
ctf-sha1.h
ctf-string.c libctf: eliminate dtd_u, part 4: enums 2021-03-18 12:40:40 +00:00
ctf-subr.c
ctf-types.c libctf: support encodings for enums 2021-03-18 12:40:41 +00:00
ctf-util.c
elf.h
libctf.ver
Makefile.am libctf: split serialization and file writeout into its own file 2021-03-18 12:37:53 +00:00
Makefile.in libctf: split serialization and file writeout into its own file 2021-03-18 12:37:53 +00:00
NEWS
swap.h libctf: fix GNU style for do {} while 2021-03-18 12:37:55 +00:00