aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Pluzhnikov <ppluzhnikov@google.com>2015-06-03 08:58:35 -0700
committerPaul Pluzhnikov <ppluzhnikov@google.com>2015-06-03 08:58:35 -0700
commit10d353539ff696806652b1c2e6691c953152c09b (patch)
treee63636396df6d90fac061beff8232bc46fda3f81
parente19fc0ea57ac535c6aa28b58655cfcabfcf738d8 (diff)
downloadglibc-10d353539ff696806652b1c2e6691c953152c09b.tar
glibc-10d353539ff696806652b1c2e6691c953152c09b.tar.gz
glibc-10d353539ff696806652b1c2e6691c953152c09b.tar.bz2
glibc-10d353539ff696806652b1c2e6691c953152c09b.zip
For b/8315591, b/20141439 correct off-by-one error that resulted in last byte of l_name being random garbage.
-rw-r--r--README.google5
-rw-r--r--elf/dl-load.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/README.google b/README.google
index fc0d061381..9937af5592 100644
--- a/README.google
+++ b/README.google
@@ -433,3 +433,8 @@ stdio-common/vfscanf.c
socket/sys/un.h
Replace null dereference in the SUN_LEN macro with offsetof.
(nlewycky, not yet upstream)
+
+elf/dl-load.c
+ For b/8315591, b/20141439 correct off-by-one error that resulted in last
+ byte of l_name being random garbage.
+ (ppluzhnikov, google-local)
diff --git a/elf/dl-load.c b/elf/dl-load.c
index f7e8bb3077..3850f6e64b 100644
--- a/elf/dl-load.c
+++ b/elf/dl-load.c
@@ -1082,7 +1082,7 @@ _dl_map_object_from_fd (const char *name, int fd, off_t offset,
char tmp[20];
tmp[19] = '\0';
- strcat(realname, _itoa(offset, &tmp[18], 16, 0));
+ strcat(realname, _itoa(offset, &tmp[19], 16, 0));
}
#endif