From: Adhemerval Zanella Date: Wed, 23 Apr 2025 19:42:28 +0000 (-0300) Subject: nss: Fix tst-nss-hash UB X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=612ba930aac7691fd2f7ad70525c2458867fc032;p=thirdparty%2Fglibc.git nss: Fix tst-nss-hash UB UBSAN: Undefined behaviour in tst-nss-hash.c:49:8 variable length array bound evaluates to non-positive value 0 --- diff --git a/nss/tst-nss-hash.c b/nss/tst-nss-hash.c index eb1ed3e395..98113762e0 100644 --- a/nss/tst-nss-hash.c +++ b/nss/tst-nss-hash.c @@ -62,7 +62,7 @@ static int do_test (void) { size_t i, j; - for (i = 0; i < 100; ++i) + for (i = 1; i < 100; ++i) { for (j = 0; j < 8192; ++j) {