mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 14:50:05 +00:00
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>
This commit is contained in:
parent
66f2cd6e1a
commit
3c354d62f5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user