libctf: error out on corrupt CTF with invalid header flags
authorNick Alcock <nick.alcock@oracle.com>
Wed, 3 Jun 2020 16:31:44 +0000 (17:31 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Wed, 22 Jul 2020 16:57:54 +0000 (17:57 +0100)
commitec388c16cd4217a64907e4e133d2102cc4fe608a
treeb2843ad6885d24e75b5351487b008fe2598fa3d0
parent67d4cc671b7b3c49f748546a510005333fcbc465
libctf: error out on corrupt CTF with invalid header flags

If corrupt CTF with invalid header flags is passed in, return the new
error ECTF_FLAGS.

include/
* ctf-api.h (ECTF_FLAGS): New.
(ECTF_NERR): Adjust.
* ctf.h (CTF_F_MAX): New.
libctf/
* ctf-open.c (ctf_bufopen_internal): Diagnose invalid flags.
include/ChangeLog
include/ctf-api.h
include/ctf.h
libctf/ChangeLog
libctf/ctf-open.c