public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Paul Pluzhnikov <ppluzhnikov@google.com>
To: dnovillo@google.com, gcc-patches@gcc.gnu.org
Cc: ppluzhnikov@google.com
Subject: [google gcc-4_7] Backport r195207 (fix for PR55982) into google/gcc-4_7
Date: Tue, 15 Jan 2013 18:42:00 -0000	[thread overview]
Message-ID: <ye6qmwwa1e6b.fsf@elbrus2.mtv.corp.google.com> (raw)

Ok for google/gcc-4_7 ?

Ref b/8003094

Thanks,
--
Paul Pluzhnikov


2013-01-15  Paul Pluzhnikov  <ppluzhnikov@google.com>

	PR 55982
	* strncat-chk.c (__strncat_chk): Fix loop unroll.


Index: libssp/strncat-chk.c
===================================================================
--- libssp/strncat-chk.c	(revision 195212)
+++ libssp/strncat-chk.c	(working copy)
@@ -87,12 +87,6 @@ __strncat_chk (char *__restrict__ dest, const char
           *++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;
     }

             reply	other threads:[~2013-01-15 18:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-15 18:42 Paul Pluzhnikov [this message]
2013-01-15 18:46 ` Diego Novillo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ye6qmwwa1e6b.fsf@elbrus2.mtv.corp.google.com \
    --to=ppluzhnikov@google.com \
    --cc=dnovillo@google.com \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).