]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Revert "Fix elf/tst-tls20 stack OOB access"
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Wed, 26 Oct 2022 08:25:36 +0000 (09:25 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Wed, 26 Oct 2022 14:39:59 +0000 (15:39 +0100)
This reverts commit 37cfa707b08a6d8c060d7fdebf2cc255e1de8908.

elf/tst-tls20.c

index 3e94590a001bde7781d11182502fb06d85920f89..ce4635eeb1af1dcf00241c2d0969369a947eabf4 100644 (file)
@@ -342,7 +342,7 @@ do_test_invalid_dependency (bool bind_now)
            xdlclose (moddep);
        }
 
-      for (int n = 1; n < nmods; n++)
+      for (int n = 1; n <= nmods; n++)
        if (mods[n] != 0)
          unload_mod (n);
     }