diff options
Diffstat (limited to 'libctf/ctf-lookup.c')
-rw-r--r-- | libctf/ctf-lookup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libctf/ctf-lookup.c b/libctf/ctf-lookup.c index fe66bc4..d1828f8 100644 --- a/libctf/ctf-lookup.c +++ b/libctf/ctf-lookup.c @@ -176,7 +176,7 @@ ctf_lookup_by_name_internal (ctf_dict_t *fp, ctf_dict_t *child, int in_child = 0; ntype = CTF_ERR; - if (child && idx <= child->ctf_pptrtab_len) + if (child && idx < child->ctf_pptrtab_len) { ntype = child->ctf_pptrtab[idx]; if (ntype) @@ -206,7 +206,7 @@ ctf_lookup_by_name_internal (ctf_dict_t *fp, ctf_dict_t *child, idx = LCTF_TYPE_TO_INDEX (fp, ntype); ntype = CTF_ERR; - if (child && idx <= child->ctf_pptrtab_len) + if (child && idx < child->ctf_pptrtab_len) { ntype = child->ctf_pptrtab[idx]; if (ntype) |