Commit b164615d by Paul Pluzhnikov

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
parent 34ab62ee
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> 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
* configure: Regenerated. * configure: Regenerated.
......
...@@ -87,12 +87,6 @@ __strncat_chk (char *__restrict__ dest, const char *__restrict__ src, ...@@ -87,12 +87,6 @@ __strncat_chk (char *__restrict__ dest, const char *__restrict__ src,
*++dest = c; *++dest = c;
if (c == '\0') if (c == '\0')
return s; return s;
if (slen-- == 0)
__chk_fail ();
c = *src++;
*++dest = c;
if (c == '\0')
return s;
} while (--n4 > 0); } while (--n4 > 0);
n &= 3; n &= 3;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment