mirror of
https://git.freebsd.org/src.git
synced 2026-01-16 23:02:24 +00:00
libctf: Fix recursive descent into anonymous SOU fields
PR: 262412
Tested by: dhw, gallatin
Fixes: a6fb869173 ("libctf: Handle CTFv3 containers")
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
0967f7030c
commit
6e563a1b60
1 changed files with 2 additions and 2 deletions
|
|
@ -818,8 +818,8 @@ _ctf_member_info(ctf_file_t *fp, ctf_id_t type, const char *name, ulong_t off,
|
|||
|
||||
ctf_get_ctm_info(fp, mp, size, &increment, &type, &offset,
|
||||
&name1);
|
||||
if (name1 == NULL &&
|
||||
_ctf_member_info(fp, type, name1, offset + off, mip) == 0)
|
||||
if (name1[0] == '\0' &&
|
||||
_ctf_member_info(fp, type, name, offset + off, mip) == 0)
|
||||
return (0);
|
||||
if (strcmp(name1, name) == 0) {
|
||||
mip->ctm_type = type;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue