diff options
author | Paul Pluzhnikov <ppluzhnikov@google.com> | 2015-06-03 08:58:35 -0700 |
---|---|---|
committer | Paul Pluzhnikov <ppluzhnikov@google.com> | 2015-06-03 08:58:35 -0700 |
commit | 10d353539ff696806652b1c2e6691c953152c09b (patch) | |
tree | e63636396df6d90fac061beff8232bc46fda3f81 | |
parent | e19fc0ea57ac535c6aa28b58655cfcabfcf738d8 (diff) | |
download | glibc-10d353539ff696806652b1c2e6691c953152c09b.zip glibc-10d353539ff696806652b1c2e6691c953152c09b.tar.gz glibc-10d353539ff696806652b1c2e6691c953152c09b.tar.bz2 |
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.google | 5 | ||||
-rw-r--r-- | elf/dl-load.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/README.google b/README.google index fc0d061..9937af5 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 f7e8bb3..3850f6e 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 |