public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/maskray/grte] For b/8315591, b/20141439 correct off-by-one error that resulted in last byte of l_name being random
@ 2021-08-27 23:24 Fangrui Song
0 siblings, 0 replies; only message in thread
From: Fangrui Song @ 2021-08-27 23:24 UTC (permalink / raw)
To: glibc-cvs
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-27 23:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-27 23:24 [glibc/maskray/grte] For b/8315591, b/20141439 correct off-by-one error that resulted in last byte of l_name being random Fangrui Song
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).