]> sourceware.org Git - glibc.git/commitdiff
elf: Parse the auxv values as unsigned on tst-tunables-enable_secure-env.c (BZ 31890)
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 18 Jul 2024 12:15:44 +0000 (09:15 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 19 Jul 2024 11:50:38 +0000 (08:50 -0300)
AT_HWCAP on some architecture can indeed use all bits.

Checked on x86_64-linux-gnu and powerpc-linux-gnu.
Reviewed-By: Andreas K. Hüttel <dilfridge@gentoo.org>
elf/tst-tunables-enable_secure-env.c

index 01f121efc3ee5205390170bf44abb2de7d69dea1..937259f2189d5c05b31104b4cedf02dc21c858d7 100644 (file)
@@ -46,7 +46,7 @@ check_auxv (unsigned long type, char *argv)
 {
   char *endptr;
   errno = 0;
-  unsigned long int varg = strtol (argv, &endptr, 10);
+  unsigned long int varg = strtoul (argv, &endptr, 10);
   TEST_VERIFY_EXIT (errno == 0);
   TEST_VERIFY_EXIT (*endptr == '\0');
   errno = 0;
This page took 0.038676 seconds and 5 git commands to generate.