summaryrefslogtreecommitdiff
path: root/libssp/strncat-chk.c
diff options
context:
space:
mode:
authorPaul Pluzhnikov <ppluzhnikov@gcc.gnu.org>2013-01-15 08:02:42 -0800
committerPaul Pluzhnikov <ppluzhnikov@gcc.gnu.org>2013-01-15 08:02:42 -0800
commitb164615d7992868eed1ff874b2ac0e2d1a73bffb (patch)
tree5f60a0df5cf69f6954ef0c9b5ec2a8dcab0c0331 /libssp/strncat-chk.c
parent34ab62ee34e466508a8298eafc24a15a45b97ef6 (diff)
re PR other/55982 (__strncat_chk is buggy)
2013-01-15 Paul Pluzhnikov <ppluzhnikov@google.com> PR 55982 * strncat-chk.c (__strncat_chk): Fix loop unroll. From-SVN: r195207
Diffstat (limited to 'libssp/strncat-chk.c')
-rw-r--r--libssp/strncat-chk.c6
1 files changed, 0 insertions, 6 deletions
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;
}