fsanitize: member access within null pointer
Pavel Sanda
sanda at lyx.org
Mon Dec 27 09:41:49 UTC 2021
On Sun, Dec 26, 2021 at 09:48:11AM +0100, Kornel Benko wrote:
> > I guess clang is not happy with (((struct sockaddr_un *) 0)->sun_path)
> >
> > Our own code has:
> > #if !defined(SUN_LEN)
> > #define SUN_LEN(su) \
> > (sizeof (*(su)) - sizeof ((su)->sun_path) + strlen((su)->sun_path))
> > #endif
>
> That was a good guess! With the attached change the message does not appear anymore.
Apart from that error message is there some functional problem for LyX?
Otherwise I would leave things as they are, it's not our code and sooner
or later someone will report this to libc maintainers. (Or it could be
you? :)
Or add a comment once we forget...
Pavel
More information about the lyx-devel
mailing list