Blame SOURCES/glibc-rh1505492-prototypes-debug.patch
|
|
00db10 |
Convert __stpcpy_chk and __strcpy_chk to prototype-style function
|
|
|
00db10 |
definitions. Upstream, this happened as part of:
|
|
|
00db10 |
|
|
|
00db10 |
commit 0d0325ed4b1052f32069eb3a51f7e16485a73568
|
|
|
00db10 |
Author: Ondřej Bílka <neleai@seznam.cz>
|
|
|
00db10 |
Date: Tue Aug 25 12:23:24 2015 +0200
|
|
|
00db10 |
|
|
|
00db10 |
Fix strcpy_chk and stpcpy_chk performance.
|
|
|
00db10 |
|
|
|
00db10 |
diff --git a/debug/stpcpy_chk.c b/debug/stpcpy_chk.c
|
|
|
00db10 |
index 3934d132d930093c..ba8058051857ef16 100644
|
|
|
00db10 |
--- a/debug/stpcpy_chk.c
|
|
|
00db10 |
+++ b/debug/stpcpy_chk.c
|
|
|
00db10 |
@@ -24,10 +24,7 @@
|
|
|
00db10 |
|
|
|
00db10 |
/* Copy SRC to DEST, returning the address of the terminating '\0' in DEST. */
|
|
|
00db10 |
char *
|
|
|
00db10 |
-__stpcpy_chk (dest, src, destlen)
|
|
|
00db10 |
- char *dest;
|
|
|
00db10 |
- const char *src;
|
|
|
00db10 |
- size_t destlen;
|
|
|
00db10 |
+__stpcpy_chk (char *dest, const char *src, size_t destlen)
|
|
|
00db10 |
{
|
|
|
00db10 |
char *d = dest;
|
|
|
00db10 |
const char *s = src;
|
|
|
00db10 |
diff --git a/debug/strcpy_chk.c b/debug/strcpy_chk.c
|
|
|
00db10 |
index ee22b11cd33afdde..7cbe14a327dc7992 100644
|
|
|
00db10 |
--- a/debug/strcpy_chk.c
|
|
|
00db10 |
+++ b/debug/strcpy_chk.c
|
|
|
00db10 |
@@ -23,10 +23,7 @@
|
|
|
00db10 |
|
|
|
00db10 |
/* Copy SRC to DEST with checking of destination buffer overflow. */
|
|
|
00db10 |
char *
|
|
|
00db10 |
-__strcpy_chk (dest, src, destlen)
|
|
|
00db10 |
- char *dest;
|
|
|
00db10 |
- const char *src;
|
|
|
00db10 |
- size_t destlen;
|
|
|
00db10 |
+__strcpy_chk (char *dest, const char *src, size_t destlen)
|
|
|
00db10 |
{
|
|
|
00db10 |
char c;
|
|
|
00db10 |
char *s = (char *) src;
|