Allow extension tags in proc_find_dynamic_entry_addr
Remove the check for generic tags allowing the caller
to pass extension tags. I couldn't find a way to strictly
validate the tag nr, furthermore the seek tag is internally
generated so I simply dropped the check (beyond checking for
positive values).
One way possible could be to check for:
(tag >= DT_NULL && tag < DT_NUM) || (tag >= DT_LOOS && tag <= DT_HIPROC)
But I'm not sure thats OK.
Signed-off-by: Edgar E. Iglesias <edgar@axis.com>
diff --git a/sysdeps/linux-gnu/proc.c b/sysdeps/linux-gnu/proc.c
index 450177c..cc322fa 100644
--- a/sysdeps/linux-gnu/proc.c
+++ b/sysdeps/linux-gnu/proc.c
@@ -323,7 +323,7 @@
{
debug(DEBUG_FUNCTION, "find_dynamic_entry()");
- if (ret == NULL || src_addr == 0 || d_tag < 0 || d_tag > DT_NUM)
+ if (ret == NULL || src_addr == 0 || d_tag < 0)
return -1;
int i = 0;