[Bug dynamic-link/23102] Incorrect parsing of multiple consecutive $variable patterns in runpath entries (e.g. $ORIGIN$ORIGIN)
ldv at sourceware dot org
sourceware-bugzilla@sourceware.org
Wed Jun 6 00:27:00 GMT 2018
https://sourceware.org/bugzilla/show_bug.cgi?id=23102
--- Comment #5 from Dmitry V. Levin <ldv at sourceware dot org> ---
(In reply to Carlos O'Donell from comment #3)
> (In reply to Dmitry V. Levin from comment #2)
> > A token in $var form is substituted only if it ends the string or is
> > followed by '/'. A token in {var} form does not have this limitation.
> >
> > I suggest documenting this behavior rather than changing it.
>
> The official specification of the gABI says:
> http://www.sco.com/developers/gabi/latest/ch5.dynamic.html#shobj_dependencies
> ~~~
> Within a string provided by dynamic array entries with the DT_NEEDED or
> DT_RUNPATH tags and in pathnames passed as parameters to the dlopen()
> routine, a dollar sign ($) introduces a substitution sequence. This sequence
> consists of the dollar sign immediately followed by either the longest name
> sequence or a name contained within left and right braces ({) and (}). A
> name is a sequence of bytes that start with either a letter or an underscore
> followed by zero or more letters, digits or underscores. If a dollar sign is
> not immediately followed by a name or a brace-enclosed name, the behavior of
> the dynamic linker is unspecified. ~~~
>
> Which seems to allow $ORIGIN$ORIGIN to me?
Yes, this specification allows $ORIGIN$ORIGIN, although it hardly makes sense.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list