summaryrefslogtreecommitdiff
path: root/libssp
diff options
context:
space:
mode:
authorppluzhnikov <ppluzhnikov@138bc75d-0d04-0410-961f-82ee72b054a4>2013-01-15 16:02:42 +0000
committerppluzhnikov <ppluzhnikov@138bc75d-0d04-0410-961f-82ee72b054a4>2013-01-15 16:02:42 +0000
commit38e21839f2d50f0ac61bbb72ee0bf53dc2e3d549 (patch)
tree5f60a0df5cf69f6954ef0c9b5ec2a8dcab0c0331 /libssp
parent21be23eb6d520315fd6fc61a207773664173abfd (diff)
downloadlinaro-gcc-38e21839f2d50f0ac61bbb72ee0bf53dc2e3d549.tar.gz
linaro-gcc-38e21839f2d50f0ac61bbb72ee0bf53dc2e3d549.tar.bz2
linaro-gcc-38e21839f2d50f0ac61bbb72ee0bf53dc2e3d549.zip
2013-01-15 Paul Pluzhnikov <ppluzhnikov@google.com>
PR 55982 * strncat-chk.c (__strncat_chk): Fix loop unroll. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195207 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libssp')
-rw-r--r--libssp/ChangeLog11
-rw-r--r--libssp/strncat-chk.c6
2 files changed, 8 insertions, 9 deletions
diff --git a/libssp/ChangeLog b/libssp/ChangeLog
index 64874e1c003..294dfd5d26b 100644
--- a/libssp/ChangeLog
+++ b/libssp/ChangeLog
@@ -1,12 +1,17 @@
+2013-01-15 Paul Pluzhnikov <ppluzhnikov@google.com>
+
+ PR 55982
+ * strncat-chk.c (__strncat_chk): Fix loop unroll.
+
2012-09-14 David Edelsohn <dje.gcc@gmail.com>
* configure: Regenerated.
2012-05-29 Benjamin Kosnik <bkoz@redhat.com>
- PR libstdc++/51007
- * configure.ac: Allow gnu, gnu* variants for --enable-symvers argument.
- * configure: Regenerated.
+ PR libstdc++/51007
+ * configure.ac: Allow gnu, gnu* variants for --enable-symvers argument.
+ * configure: Regenerated.
2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
diff --git a/libssp/strncat-chk.c b/libssp/strncat-chk.c
index d8056e84336..6ab41ffbc68 100644
--- a/libssp/strncat-chk.c
+++ b/libssp/strncat-chk.c
@@ -87,12 +87,6 @@ __strncat_chk (char *__restrict__ dest, const char *__restrict__ src,
*++dest = c;
if (c == '\0')
return s;
- if (slen-- == 0)
- __chk_fail ();
- c = *src++;
- *++dest = c;
- if (c == '\0')
- return s;
} while (--n4 > 0);
n &= 3;
}