fsanitize: member access within null pointer
Kornel Benko
kornel at lyx.org
Mon Dec 27 10:32:49 UTC 2021
Am Mon, 27 Dec 2021 10:41:49 +0100
schrieb Pavel Sanda <sanda at lyx.org>:
> 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?
Not that I am aware of. It manifests only at runtime with sanitize + clang ...
> Otherwise I would leave things as they are, it's not our code and sooner
> or later someone will report this to libc maintainers.
I think it is unlikely (who else is using sanitize + clang with this code?)
> (Or it could be
> you? :)
:(
> Or add a comment once we forget...
Maybe some native English speaker would fit here better.
> Pavel
Kornel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20211227/389154dc/attachment.asc>
More information about the lyx-devel
mailing list