Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/freebsd/freebsd-src.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2022-04-12 22:24:40 +0300
committerMark Johnston <markj@FreeBSD.org>2022-04-18 19:39:00 +0300
commit5f649725da97c05329f8e37eb0fd4fba0f289b43 (patch)
tree6b53644c92270167985f61f972562873b34b2918
parent6955dbde7ad6eb0d6674bf461882f20143c24e8a (diff)
libctf: Fix recursive descent into anonymous SOU fields
Approved by: re (gjb) PR: 262412 Tested by: dhw, gallatin Fixes: a6fb86917362 ("libctf: Handle CTFv3 containers") Sponsored by: The FreeBSD Foundation (cherry picked from commit 6e563a1b608438504d963c2d7c70e50d2e75af46) (cherry picked from commit 8b01c3026b78152d9e0ca6f3758ea226f32e48b9)
-rw-r--r--cddl/contrib/opensolaris/common/ctf/ctf_types.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cddl/contrib/opensolaris/common/ctf/ctf_types.c b/cddl/contrib/opensolaris/common/ctf/ctf_types.c
index de8269659c29..a3fe0bba4a9d 100644
--- a/cddl/contrib/opensolaris/common/ctf/ctf_types.c
+++ b/cddl/contrib/opensolaris/common/ctf/ctf_types.c
@@ -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;