public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Szabolcs Nagy <nsz@sourceware.org>
To: glibc-cvs@sourceware.org
Subject: [glibc/arm/morello/main] Fix elf/tst-tls20 stack OOB access
Date: Wed, 12 Oct 2022 14:15:29 +0000 (GMT)	[thread overview]
Message-ID: <20221012141529.D5E3B3851157@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=37cfa707b08a6d8c060d7fdebf2cc255e1de8908

commit 37cfa707b08a6d8c060d7fdebf2cc255e1de8908
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
Date:   Tue Oct 11 13:07:59 2022 +0100

    Fix elf/tst-tls20 stack OOB access
    
    Off-by-one error found on morello with strict stack bounds.

Diff:
---
 elf/tst-tls20.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elf/tst-tls20.c b/elf/tst-tls20.c
index ce4635eeb1..3e94590a00 100644
--- a/elf/tst-tls20.c
+++ b/elf/tst-tls20.c
@@ -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);
     }

             reply	other threads:[~2022-10-12 14:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-12 14:15 Szabolcs Nagy [this message]
2022-10-26 14:50 Szabolcs Nagy
2022-10-26 15:10 Szabolcs Nagy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221012141529.D5E3B3851157@sourceware.org \
    --to=nsz@sourceware.org \
    --cc=glibc-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).