mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-20 21:02:10 +08:00
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.
This commit is contained in:
@ -199,7 +199,8 @@ typedef struct ctf_header
|
||||
#define CTF_VERSION_3 4
|
||||
#define CTF_VERSION CTF_VERSION_3 /* Current version. */
|
||||
|
||||
#define CTF_F_COMPRESS 0x1 /* Data buffer is compressed by libctf. */
|
||||
#define CTF_F_COMPRESS 0x1 /* Data buffer is compressed by libctf. */
|
||||
#define CTF_F_MAX CTF_F_COMPRESS /* The greatest flag value in use. */
|
||||
|
||||
typedef struct ctf_lblent
|
||||
{
|
||||
|
Reference in New Issue
Block a user