mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 04:50:07 +00:00
elf: Fix a wrong array access on tst-tls20
Check on x86_64-linux-gnu with --enable-stack-protector=all.
This commit is contained in:
parent
3a0253ac6f
commit
881b68e45c
@ -226,12 +226,12 @@ do_test_dependency (void)
|
|||||||
int mods[nmods];
|
int mods[nmods];
|
||||||
/* We use '0' as indication for a gap, to avoid the dlclose on iteration
|
/* We use '0' as indication for a gap, to avoid the dlclose on iteration
|
||||||
cleanup. */
|
cleanup. */
|
||||||
for (int n = 1; n <= nmods; n++)
|
for (int n = 1; n < nmods; n++)
|
||||||
{
|
{
|
||||||
load_mod (n);
|
load_mod (n);
|
||||||
mods[n] = n;
|
mods[n] = n;
|
||||||
}
|
}
|
||||||
for (int n = 1; n <= nmods; n++)
|
for (int n = 1; n < nmods; n++)
|
||||||
{
|
{
|
||||||
if (!is_mod_set (g, n))
|
if (!is_mod_set (g, n))
|
||||||
{
|
{
|
||||||
@ -304,12 +304,12 @@ do_test_invalid_dependency (bool bind_now)
|
|||||||
int mods[nmods];
|
int mods[nmods];
|
||||||
/* We use '0' as indication for a gap, to avoid the dlclose on iteration
|
/* We use '0' as indication for a gap, to avoid the dlclose on iteration
|
||||||
cleanup. */
|
cleanup. */
|
||||||
for (int n = 1; n <= nmods; n++)
|
for (int n = 1; n < nmods; n++)
|
||||||
{
|
{
|
||||||
load_mod (n);
|
load_mod (n);
|
||||||
mods[n] = n;
|
mods[n] = n;
|
||||||
}
|
}
|
||||||
for (int n = 1; n <= nmods; n++)
|
for (int n = 1; n < nmods; n++)
|
||||||
{
|
{
|
||||||
if (!is_mod_set (g, n))
|
if (!is_mod_set (g, n))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user