public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Fangrui Song <maskray@sourceware.org>
To: glibc-cvs@sourceware.org
Subject: [glibc/google/grte/v5-2.27/master] For b/8315591, b/20141439 correct off-by-one error that resulted in last byte of l_name being random
Date: Sat, 28 Aug 2021 00:41:03 +0000 (GMT)	[thread overview]
Message-ID: <20210828004103.72497385801A@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=60cdb6bb4eff1447d41b7ebb6cd523042fdd1cc4

commit 60cdb6bb4eff1447d41b7ebb6cd523042fdd1cc4
Author: Paul Pluzhnikov <ppluzhnikov@google.com>
Date:   Wed Jun 3 08:58:35 2015 -0700

    For b/8315591, b/20141439 correct off-by-one error that resulted in last byte of l_name being random garbage.

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

diff --git a/elf/dl-load.c b/elf/dl-load.c
index 3aa581692d..1afaddff2a 100644
--- a/elf/dl-load.c
+++ b/elf/dl-load.c
@@ -965,7 +965,7 @@ _dl_map_object_from_fd (const char *name, const char *origname, int fd, off_t of
 
       char tmp[20];
       tmp[19] = '\0';
-      strcat(realname, _itoa(offset, &tmp[18], 16, 0));
+      strcat(realname, _itoa(offset, &tmp[19], 16, 0));
     }
 #endif


                 reply	other threads:[~2021-08-28  0:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20210828004103.72497385801A@sourceware.org \
    --to=maskray@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).