aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2019-09-23 08:51:36 -0700
committerH.J. Lu <hjl.tools@gmail.com>2019-09-23 08:51:36 -0700
commit4a41f3face78a551ea5c85db24125989754f2ee8 (patch)
tree8a9438b048e54d47e1070437f7b1db712afd8c57
parentec73ddcd43b588924c95f1a997351314ddf84e39 (diff)
downloadgdb-4a41f3face78a551ea5c85db24125989754f2ee8.zip
gdb-4a41f3face78a551ea5c85db24125989754f2ee8.tar.gz
gdb-4a41f3face78a551ea5c85db24125989754f2ee8.tar.bz2
ld-plugin/pr24406-1.c: Correct buffer size to read
* testsuite/ld-plugin/pr24406-1.c (main): Correct buffer size to read.
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/testsuite/ld-plugin/pr24406-1.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index fe27434..0e550d2 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2019-09-23 H.J. Lu <hongjiu.lu@intel.com>
+
+ * testsuite/ld-plugin/pr24406-1.c (main): Correct buffer size
+ to read.
+
2019-09-23 Alan Modra <amodra@gmail.com>
* deffilep.y: Include bfdlink.h.
diff --git a/ld/testsuite/ld-plugin/pr24406-1.c b/ld/testsuite/ld-plugin/pr24406-1.c
index 43995bd..fc706d3 100644
--- a/ld/testsuite/ld-plugin/pr24406-1.c
+++ b/ld/testsuite/ld-plugin/pr24406-1.c
@@ -12,6 +12,6 @@ __wrap_read (int fd, void *buffer, size_t count)
int
main ()
{
- int i = read (1, "abc", 5);
+ int i = read (1, "abc", 4);
return i == 0;
}