[Top][All Lists]

[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:


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.


Attachment: signature.asc
Description: PGP signature

reply via email to

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