On Thu, Jun 5, 2025 at 10:38 AM Bruno Haible <br...@clisp.org> wrote:

>
>
> These Gnulib modules use a feature that has only recently been standardized
> as valid in ISO C [1].
>
> Work is underway in glibc, gcc, and clang, to avoid the now-unjustified
> UBSAN
> reports [2][3][4].
>
> Until then, your best remedy is to pass the following options to your
> gnulib-tool invocation(s):
>
>     --avoid=memchr-tests \
>
>     -...
> Bruno
>
>
Thanks for a quick response.

Sorry for being unclear, my problem is with Octave's code (test case or
otherwise). E.g.:

octave:1> s = char([72 101 108 108 111 44 32 228 189 160 229 165 189]);
octave:2> save -mat test.mat s
../../libgnu/unistr/u8-to-u16.c:80:34: runtime error: applying zero offset
to null pointer
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior
../../libgnu/unistr/u8-to-u16.c:80:34

But since it is not a bug in gnulib, we will do some work-around.

Dmitri.
--

Reply via email to