* tests/test-mcel.c (main): Don’t overrun test input buffer.
Problem reported by Bruno Haible; found on CHERI-64.
+2023-11-06 Paul Eggert <eggert@cs.ucla.edu>
+
+ mcel-tests: fix read overrun in test case
+ * tests/test-mcel.c (main): Don’t overrun test input buffer.
+ Problem reported by Bruno Haible; found on CHERI-64.
+
2023-11-06 Bruno Haible <bruno@clisp.org>
fenv-exceptions-tracking-c99 tests: Fix typo.
for (int ti = 0; ti < sizeof terminator; ti++)
{
char t = terminator[ti];
- if (i == t)
+ if (i == t || j == t || k == t)
continue;
- mcel_t d = mcel_scant (ijk, t);
+ char const ijkt[] = {i, j, k, t};
+ mcel_t d = mcel_scant (ijkt, t);
ASSERT (c.ch == d.ch && c.err == d.err && c.len == d.len);
if (!t)
{