[PATCH] Improve DST handling (Bug 23102, Bug 21942, Bug 18018, Bug, 23259, CVE-2011-0536 ).

Florian Weimer fweimer@redhat.com
Thu Jun 7 11:38:00 GMT 2018


On 06/06/2018 10:18 PM, Carlos O'Donell wrote:
> +is_dst (const char *input, const char *ref)

Maybe we should fix the strncmp bug and use that?

In rtld, the actual definitions are not built with the proper name, but 
aliases for use in IFUNCs, which we don't use in rtld.

The attached patch fixes that for x86-64 and i686 (multi-arch in both 
cases).  I don't think other architectures are affected (verified for 
ppc64le, build-many-glibcs.py is still running).

If you want to use strncmp to express more clearly what the code is 
about, I can commit the fix separately (with a proper ChangeLog entry etc.).

Thanks,
Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: strncmp-in-rtld.patch
Type: text/x-patch
Size: 3091 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20180607/40527356/attachment.bin>


More information about the Libc-alpha mailing list