diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2024-07-18 09:15:44 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2024-07-19 08:50:38 -0300 |
commit | 3c354d62f5c30d32bd553735473e95a8af4f56ec (patch) | |
tree | 0c4de4d03fd90dd49cf46210e2f4dc456353055f /elf | |
parent | 66f2cd6e1a5a9a0113c9f5c13fb06707fef77fd4 (diff) | |
download | glibc-3c354d62f5c30d32bd553735473e95a8af4f56ec.tar.gz glibc-3c354d62f5c30d32bd553735473e95a8af4f56ec.tar.xz glibc-3c354d62f5c30d32bd553735473e95a8af4f56ec.zip |
elf: Parse the auxv values as unsigned on tst-tunables-enable_secure-env.c (BZ 31890)
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>
Diffstat (limited to 'elf')
-rw-r--r-- | elf/tst-tunables-enable_secure-env.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/tst-tunables-enable_secure-env.c b/elf/tst-tunables-enable_secure-env.c index 01f121efc3..937259f218 100644 --- a/elf/tst-tunables-enable_secure-env.c +++ b/elf/tst-tunables-enable_secure-env.c @@ -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; |