bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: uninorm/composition.c:75:22: runtime error


From: Simon Josefsson
Subject: Re: uninorm/composition.c:75:22: runtime error
Date: Fri, 04 Mar 2022 14:58:58 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Bruno Haible <bruno@clisp.org> writes:

> I could rewrite this line as
>
>             codes[2] = (char) (unsigned char) (uc1 & 0xff);

Here is the slightly smaller local patch I am using:

https://gitlab.com/libidn/libidn2/-/commit/d792d91eb7197691cd3d2878b110c4d5ce58b2a9#7257b9bace195314d2201030e03b7ee2b83e4c83

Below that is a patch for another UBSAN complaint about a NULL + 0
operation -- I recall that being discussed before too, but don't recall
the conclusion.

> but this would be adding redundant casts, which - as Paul often remarks -
> hamper maintainability.

I agree -- it may be a clang UBSAN problem instead.

/Simon

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]