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