Re: misc/exec-bad-unicode test fails with sanitizers
From:
Collin Funk
Subject:
Re: misc/exec-bad-unicode test fails with sanitizers
Date:
Wed, 14 Oct 2026 23:30:07 -0700
User-agent:
Gnus/5.13 (Gnus v5.13)
Hi Bruno,
Bruno Haible <bruno@clisp.org> writes:
> Collin Funk wrote:
>> ASAN was not top of mind when I wrote that test. I
>> should probably get in the habit of using it no matter what
>
> You don't need to. That's what we have the CI for. So that you can
> concentrate on the algorithm and a maintainable code.
True. I still like to avoid making it fail. But if it never failed, I
guess it would have no purpose. :)
By the way, I suggest adding "-fsanitize=bounds" to the CI, so that any
violations of the counted_by attribute are caught. With both GCC and
Clang, it can be enabled with ASAN and/or UBSAN. So you could use the
same job, unless you prefer using a separate one for some reason.
Collin