[PATCH] nss: remove undefined behavior and optimize getaddrinfo

Cristian Rodríguez cristian@rodriguez.im
Mon Apr 28 12:47:33 GMT 2025


On Mon, Apr 28, 2025 at 1:31 AM Sam James <sam@gentoo.org> wrote:
>
> Collin Funk <collin.funk1@gmail.com> writes:
> Are you running using his UBSAN patches, or doing something else (just
> noticed by inspection or ...)?

I spotted this one by inspection a while ago because the
reimplementation of fls is obvious.
There are many different versions in the code, particularly in longlong.h IIRC.

all the BSD have a fls* public functions in libc so adding one in
glibc may reduce duplication.


More information about the Libc-alpha mailing list