summaryrefslogtreecommitdiff
path: root/libc/debug
diff options
context:
space:
mode:
Diffstat (limited to 'libc/debug')
-rw-r--r--libc/debug/Makefile2
-rw-r--r--libc/debug/asprintf_chk.c2
-rw-r--r--libc/debug/backtrace.c2
-rw-r--r--libc/debug/backtracesyms.c2
-rw-r--r--libc/debug/backtracesymsfd.c2
-rwxr-xr-xlibc/debug/catchsegv.sh4
-rw-r--r--libc/debug/chk_fail.c2
-rw-r--r--libc/debug/confstr_chk.c2
-rw-r--r--libc/debug/dprintf_chk.c2
-rw-r--r--libc/debug/execinfo.h2
-rw-r--r--libc/debug/fdelt_chk.c2
-rw-r--r--libc/debug/fgets_chk.c2
-rw-r--r--libc/debug/fgets_u_chk.c2
-rw-r--r--libc/debug/fgetws_chk.c2
-rw-r--r--libc/debug/fgetws_u_chk.c2
-rw-r--r--libc/debug/fortify_fail.c2
-rw-r--r--libc/debug/fprintf_chk.c2
-rw-r--r--libc/debug/fread_chk.c2
-rw-r--r--libc/debug/fread_u_chk.c2
-rw-r--r--libc/debug/fwprintf_chk.c2
-rw-r--r--libc/debug/getcwd_chk.c2
-rw-r--r--libc/debug/getdomainname_chk.c2
-rw-r--r--libc/debug/getgroups_chk.c2
-rw-r--r--libc/debug/gethostname_chk.c2
-rw-r--r--libc/debug/gets_chk.c2
-rw-r--r--libc/debug/getwd_chk.c2
-rw-r--r--libc/debug/longjmp_chk.c2
-rw-r--r--libc/debug/mbsnrtowcs_chk.c2
-rw-r--r--libc/debug/mbsrtowcs_chk.c2
-rw-r--r--libc/debug/mbstowcs_chk.c2
-rw-r--r--libc/debug/memcpy_chk.c33
-rw-r--r--libc/debug/memmove_chk.c65
-rw-r--r--libc/debug/mempcpy_chk.c33
-rw-r--r--libc/debug/memset_chk.c63
-rw-r--r--libc/debug/noophooks.c2
-rw-r--r--libc/debug/obprintf_chk.c2
-rw-r--r--libc/debug/pcprofile.c2
-rw-r--r--libc/debug/pcprofiledump.c4
-rw-r--r--libc/debug/poll_chk.c2
-rw-r--r--libc/debug/ppoll_chk.c2
-rw-r--r--libc/debug/pread64_chk.c2
-rw-r--r--libc/debug/pread_chk.c2
-rw-r--r--libc/debug/printf_chk.c2
-rw-r--r--libc/debug/read_chk.c2
-rw-r--r--libc/debug/readlink_chk.c2
-rw-r--r--libc/debug/readlinkat_chk.c2
-rw-r--r--libc/debug/readonly-area.c2
-rw-r--r--libc/debug/realpath_chk.c2
-rw-r--r--libc/debug/recv_chk.c2
-rw-r--r--libc/debug/recvfrom_chk.c2
-rw-r--r--libc/debug/segfault.c2
-rw-r--r--libc/debug/snprintf_chk.c2
-rw-r--r--libc/debug/sprintf_chk.c2
-rw-r--r--libc/debug/stack_chk_fail.c2
-rw-r--r--libc/debug/stack_chk_fail_local.c2
-rw-r--r--libc/debug/stpcpy_chk.c2
-rw-r--r--libc/debug/stpncpy_chk.c56
-rw-r--r--libc/debug/strcat_chk.c2
-rw-r--r--libc/debug/strcpy_chk.c2
-rw-r--r--libc/debug/strncat_chk.c2
-rw-r--r--libc/debug/strncpy_chk.c59
-rw-r--r--libc/debug/swprintf_chk.c2
-rw-r--r--libc/debug/test-stpcpy_chk-ifunc.c2
-rw-r--r--libc/debug/test-stpcpy_chk.c2
-rw-r--r--libc/debug/test-strcpy_chk-ifunc.c2
-rw-r--r--libc/debug/test-strcpy_chk.c2
-rw-r--r--libc/debug/tst-backtrace.h2
-rw-r--r--libc/debug/tst-backtrace2.c2
-rw-r--r--libc/debug/tst-backtrace3.c2
-rw-r--r--libc/debug/tst-backtrace4.c2
-rw-r--r--libc/debug/tst-backtrace5.c2
-rw-r--r--libc/debug/tst-backtrace6.c2
-rw-r--r--libc/debug/tst-chk1.c2
-rw-r--r--libc/debug/ttyname_r_chk.c2
-rw-r--r--libc/debug/vasprintf_chk.c2
-rw-r--r--libc/debug/vdprintf_chk.c2
-rw-r--r--libc/debug/vfprintf_chk.c2
-rw-r--r--libc/debug/vfwprintf_chk.c2
-rw-r--r--libc/debug/vprintf_chk.c2
-rw-r--r--libc/debug/vsnprintf_chk.c2
-rw-r--r--libc/debug/vsprintf_chk.c2
-rw-r--r--libc/debug/vswprintf_chk.c2
-rw-r--r--libc/debug/vwprintf_chk.c2
-rw-r--r--libc/debug/warning-nop.c2
-rw-r--r--libc/debug/wcpcpy_chk.c2
-rw-r--r--libc/debug/wcpncpy_chk.c2
-rw-r--r--libc/debug/wcrtomb_chk.c2
-rw-r--r--libc/debug/wcscat_chk.c2
-rw-r--r--libc/debug/wcscpy_chk.c2
-rw-r--r--libc/debug/wcsncat_chk.c2
-rw-r--r--libc/debug/wcsncpy_chk.c2
-rw-r--r--libc/debug/wcsnrtombs_chk.c2
-rw-r--r--libc/debug/wcsrtombs_chk.c2
-rw-r--r--libc/debug/wcstombs_chk.c2
-rw-r--r--libc/debug/wctomb_chk.c2
-rw-r--r--libc/debug/wmemcpy_chk.c2
-rw-r--r--libc/debug/wmemmove_chk.c2
-rw-r--r--libc/debug/wmempcpy_chk.c2
-rw-r--r--libc/debug/wmemset_chk.c2
-rw-r--r--libc/debug/wprintf_chk.c2
-rwxr-xr-xlibc/debug/xtrace.sh4
101 files changed, 110 insertions, 395 deletions
diff --git a/libc/debug/Makefile b/libc/debug/Makefile
index 626d18f2c..ca770e1b0 100644
--- a/libc/debug/Makefile
+++ b/libc/debug/Makefile
@@ -1,4 +1,4 @@
-# Copyright (C) 1998-2013 Free Software Foundation, Inc.
+# Copyright (C) 1998-2014 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
# The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/asprintf_chk.c b/libc/debug/asprintf_chk.c
index 2aff3af29..d652b02fd 100644
--- a/libc/debug/asprintf_chk.c
+++ b/libc/debug/asprintf_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/backtrace.c b/libc/debug/backtrace.c
index 84594986c..69dee00ce 100644
--- a/libc/debug/backtrace.c
+++ b/libc/debug/backtrace.c
@@ -1,5 +1,5 @@
/* Return backtrace of current program state. Generic version.
- Copyright (C) 1998-2013 Free Software Foundation, Inc.
+ Copyright (C) 1998-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
diff --git a/libc/debug/backtracesyms.c b/libc/debug/backtracesyms.c
index 7a45ea72f..3faaf7b05 100644
--- a/libc/debug/backtracesyms.c
+++ b/libc/debug/backtracesyms.c
@@ -1,5 +1,5 @@
/* Return list with names for address in backtrace.
- Copyright (C) 1998-2013 Free Software Foundation, Inc.
+ Copyright (C) 1998-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
diff --git a/libc/debug/backtracesymsfd.c b/libc/debug/backtracesymsfd.c
index 664e9cb1c..ea9562755 100644
--- a/libc/debug/backtracesymsfd.c
+++ b/libc/debug/backtracesymsfd.c
@@ -1,5 +1,5 @@
/* Write formatted list with names for addresses in backtrace to a file.
- Copyright (C) 1998-2013 Free Software Foundation, Inc.
+ Copyright (C) 1998-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
diff --git a/libc/debug/catchsegv.sh b/libc/debug/catchsegv.sh
index 3bfb8713f..a7bb5ea63 100755
--- a/libc/debug/catchsegv.sh
+++ b/libc/debug/catchsegv.sh
@@ -1,5 +1,5 @@
#! /bin/sh
-# Copyright (C) 1998-2013 Free Software Foundation, Inc.
+# Copyright (C) 1998-2014 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
# Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
@@ -40,7 +40,7 @@ EOF
;;
--v | --ve | --ver | --vers | --versi | --versio | --version)
echo 'catchsegv @PKGVERSION@@VERSION@'
- echo 'Copyright (C) 2013 Free Software Foundation, Inc.
+ echo 'Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Ulrich Drepper.'
diff --git a/libc/debug/chk_fail.c b/libc/debug/chk_fail.c
index b29b16f16..1f6302798 100644
--- a/libc/debug/chk_fail.c
+++ b/libc/debug/chk_fail.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2004-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2004-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/confstr_chk.c b/libc/debug/confstr_chk.c
index 40498c8a1..4253540c5 100644
--- a/libc/debug/confstr_chk.c
+++ b/libc/debug/confstr_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2005-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@readhat.com>, 20055.
diff --git a/libc/debug/dprintf_chk.c b/libc/debug/dprintf_chk.c
index d5f6ae220..d401b234e 100644
--- a/libc/debug/dprintf_chk.c
+++ b/libc/debug/dprintf_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/execinfo.h b/libc/debug/execinfo.h
index ae5ba2cfa..b7d874dc5 100644
--- a/libc/debug/execinfo.h
+++ b/libc/debug/execinfo.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1998-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/fdelt_chk.c b/libc/debug/fdelt_chk.c
index d14947676..5baa6f492 100644
--- a/libc/debug/fdelt_chk.c
+++ b/libc/debug/fdelt_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2011-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2011-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/fgets_chk.c b/libc/debug/fgets_chk.c
index a152ea91e..0f70d0491 100644
--- a/libc/debug/fgets_chk.c
+++ b/libc/debug/fgets_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1993-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/fgets_u_chk.c b/libc/debug/fgets_u_chk.c
index cd7192d69..62ef149be 100644
--- a/libc/debug/fgets_u_chk.c
+++ b/libc/debug/fgets_u_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1993-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/fgetws_chk.c b/libc/debug/fgetws_chk.c
index a7a428043..990106071 100644
--- a/libc/debug/fgetws_chk.c
+++ b/libc/debug/fgetws_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1993-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/fgetws_u_chk.c b/libc/debug/fgetws_u_chk.c
index 913af67c7..dbb3ee977 100644
--- a/libc/debug/fgetws_u_chk.c
+++ b/libc/debug/fgetws_u_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1993-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/fortify_fail.c b/libc/debug/fortify_fail.c
index b323975d3..c76684680 100644
--- a/libc/debug/fortify_fail.c
+++ b/libc/debug/fortify_fail.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2007-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2007-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/fprintf_chk.c b/libc/debug/fprintf_chk.c
index 39a152e0a..4c08ed9fa 100644
--- a/libc/debug/fprintf_chk.c
+++ b/libc/debug/fprintf_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/fread_chk.c b/libc/debug/fread_chk.c
index 2a98fd377..0f77a1802 100644
--- a/libc/debug/fread_chk.c
+++ b/libc/debug/fread_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1993-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/fread_u_chk.c b/libc/debug/fread_u_chk.c
index 0731ae74c..6d4d9693e 100644
--- a/libc/debug/fread_u_chk.c
+++ b/libc/debug/fread_u_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1993-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/fwprintf_chk.c b/libc/debug/fwprintf_chk.c
index 079179025..914dcb144 100644
--- a/libc/debug/fwprintf_chk.c
+++ b/libc/debug/fwprintf_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/getcwd_chk.c b/libc/debug/getcwd_chk.c
index d87d22dee..529170583 100644
--- a/libc/debug/getcwd_chk.c
+++ b/libc/debug/getcwd_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2005-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/getdomainname_chk.c b/libc/debug/getdomainname_chk.c
index 660707fe0..51ac5e0b6 100644
--- a/libc/debug/getdomainname_chk.c
+++ b/libc/debug/getdomainname_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2005-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/getgroups_chk.c b/libc/debug/getgroups_chk.c
index a33f83be5..ec5728e43 100644
--- a/libc/debug/getgroups_chk.c
+++ b/libc/debug/getgroups_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2005-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/gethostname_chk.c b/libc/debug/gethostname_chk.c
index cb520f246..10c04bd16 100644
--- a/libc/debug/gethostname_chk.c
+++ b/libc/debug/gethostname_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2005-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/gets_chk.c b/libc/debug/gets_chk.c
index 8ea685fc7..08a59dc45 100644
--- a/libc/debug/gets_chk.c
+++ b/libc/debug/gets_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1993-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/getwd_chk.c b/libc/debug/getwd_chk.c
index b5f46ad58..7982a226c 100644
--- a/libc/debug/getwd_chk.c
+++ b/libc/debug/getwd_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2005-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/longjmp_chk.c b/libc/debug/longjmp_chk.c
index d3274f253..8656a8c4c 100644
--- a/libc/debug/longjmp_chk.c
+++ b/libc/debug/longjmp_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2009-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2009-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/mbsnrtowcs_chk.c b/libc/debug/mbsnrtowcs_chk.c
index a85d4b4d8..4445f98fe 100644
--- a/libc/debug/mbsnrtowcs_chk.c
+++ b/libc/debug/mbsnrtowcs_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2005-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/mbsrtowcs_chk.c b/libc/debug/mbsrtowcs_chk.c
index 4465cfc7c..32ff7b244 100644
--- a/libc/debug/mbsrtowcs_chk.c
+++ b/libc/debug/mbsrtowcs_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2005-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/mbstowcs_chk.c b/libc/debug/mbstowcs_chk.c
index 323f65b9c..4359e194f 100644
--- a/libc/debug/mbstowcs_chk.c
+++ b/libc/debug/mbstowcs_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2005-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/memcpy_chk.c b/libc/debug/memcpy_chk.c
index a53dd7642..ab5adab6b 100644
--- a/libc/debug/memcpy_chk.c
+++ b/libc/debug/memcpy_chk.c
@@ -1,6 +1,6 @@
/* Copy memory to memory until the specified number of bytes
has been copied with error checking. Overlap is NOT handled correctly.
- Copyright (C) 1991-2013 Free Software Foundation, Inc.
+ Copyright (C) 1991-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Torbjorn Granlund (tege@sics.se).
@@ -32,34 +32,5 @@ __memcpy_chk (dstpp, srcpp, len, dstlen)
if (__builtin_expect (dstlen < len, 0))
__chk_fail ();
- unsigned long int dstp = (long int) dstpp;
- unsigned long int srcp = (long int) srcpp;
-
- /* Copy from the beginning to the end. */
-
- /* If there not too few bytes to copy, use word copy. */
- if (len >= OP_T_THRES)
- {
- /* Copy just a few bytes to make DSTP aligned. */
- len -= (-dstp) % OPSIZ;
- BYTE_COPY_FWD (dstp, srcp, (-dstp) % OPSIZ);
-
- /* Copy whole pages from SRCP to DSTP by virtual address manipulation,
- as much as possible. */
-
- PAGE_COPY_FWD_MAYBE (dstp, srcp, len, len);
-
- /* Copy from SRCP to DSTP taking advantage of the known alignment of
- DSTP. Number of bytes remaining is put in the third argument,
- i.e. in LEN. This number may vary from machine to machine. */
-
- WORD_COPY_FWD (dstp, srcp, len, len);
-
- /* Fall out and copy the tail. */
- }
-
- /* There are just a few bytes to copy. Use byte memory operations. */
- BYTE_COPY_FWD (dstp, srcp, len);
-
- return dstpp;
+ return memcpy (dstpp, srcpp, len);
}
diff --git a/libc/debug/memmove_chk.c b/libc/debug/memmove_chk.c
index 3ea34c6d0..aa0287384 100644
--- a/libc/debug/memmove_chk.c
+++ b/libc/debug/memmove_chk.c
@@ -1,6 +1,6 @@
/* Copy memory to memory until the specified number of bytes
has been copied with error checking. Overlap is handled correctly.
- Copyright (C) 1991-2013 Free Software Foundation, Inc.
+ Copyright (C) 1991-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Torbjorn Granlund (tege@sics.se).
@@ -36,66 +36,5 @@ MEMMOVE_CHK (dest, src, len, destlen)
if (__builtin_expect (destlen < len, 0))
__chk_fail ();
- unsigned long int dstp = (long int) dest;
- unsigned long int srcp = (long int) src;
-
- /* This test makes the forward copying code be used whenever possible.
- Reduces the working set. */
- if (dstp - srcp >= len) /* *Unsigned* compare! */
- {
- /* Copy from the beginning to the end. */
-
- /* If there not too few bytes to copy, use word copy. */
- if (len >= OP_T_THRES)
- {
- /* Copy just a few bytes to make DSTP aligned. */
- len -= (-dstp) % OPSIZ;
- BYTE_COPY_FWD (dstp, srcp, (-dstp) % OPSIZ);
-
- /* Copy whole pages from SRCP to DSTP by virtual address
- manipulation, as much as possible. */
-
- PAGE_COPY_FWD_MAYBE (dstp, srcp, len, len);
-
- /* Copy from SRCP to DSTP taking advantage of the known
- alignment of DSTP. Number of bytes remaining is put
- in the third argument, i.e. in LEN. This number may
- vary from machine to machine. */
-
- WORD_COPY_FWD (dstp, srcp, len, len);
-
- /* Fall out and copy the tail. */
- }
-
- /* There are just a few bytes to copy. Use byte memory operations. */
- BYTE_COPY_FWD (dstp, srcp, len);
- }
- else
- {
- /* Copy from the end to the beginning. */
- srcp += len;
- dstp += len;
-
- /* If there not too few bytes to copy, use word copy. */
- if (len >= OP_T_THRES)
- {
- /* Copy just a few bytes to make DSTP aligned. */
- len -= dstp % OPSIZ;
- BYTE_COPY_BWD (dstp, srcp, dstp % OPSIZ);
-
- /* Copy from SRCP to DSTP taking advantage of the known
- alignment of DSTP. Number of bytes remaining is put
- in the third argument, i.e. in LEN. This number may
- vary from machine to machine. */
-
- WORD_COPY_BWD (dstp, srcp, len, len);
-
- /* Fall out and copy the tail. */
- }
-
- /* There are just a few bytes to copy. Use byte memory operations. */
- BYTE_COPY_BWD (dstp, srcp, len);
- }
-
- return dest;
+ return memmove (dest, src, len);
}
diff --git a/libc/debug/mempcpy_chk.c b/libc/debug/mempcpy_chk.c
index 689588384..87db7e1e1 100644
--- a/libc/debug/mempcpy_chk.c
+++ b/libc/debug/mempcpy_chk.c
@@ -1,7 +1,7 @@
/* Copy memory to memory until the specified number of bytes
has been copied, return pointer to following byte, with error checking.
Overlap is NOT handled correctly.
- Copyright (C) 1991-2013 Free Software Foundation, Inc.
+ Copyright (C) 1991-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Torbjorn Granlund (tege@sics.se).
@@ -33,34 +33,5 @@ __mempcpy_chk (dstpp, srcpp, len, dstlen)
if (__builtin_expect (dstlen < len, 0))
__chk_fail ();
- unsigned long int dstp = (long int) dstpp;
- unsigned long int srcp = (long int) srcpp;
-
- /* Copy from the beginning to the end. */
-
- /* If there not too few bytes to copy, use word copy. */
- if (len >= OP_T_THRES)
- {
- /* Copy just a few bytes to make DSTP aligned. */
- len -= (-dstp) % OPSIZ;
- BYTE_COPY_FWD (dstp, srcp, (-dstp) % OPSIZ);
-
- /* Copy whole pages from SRCP to DSTP by virtual address manipulation,
- as much as possible. */
-
- PAGE_COPY_FWD_MAYBE (dstp, srcp, len, len);
-
- /* Copy from SRCP to DSTP taking advantage of the known alignment of
- DSTP. Number of bytes remaining is put in the third argument,
- i.e. in LEN. This number may vary from machine to machine. */
-
- WORD_COPY_FWD (dstp, srcp, len, len);
-
- /* Fall out and copy the tail. */
- }
-
- /* There are just a few bytes to copy. Use byte memory operations. */
- BYTE_COPY_FWD (dstp, srcp, len);
-
- return (void *) dstp;
+ return __mempcpy (dstpp, srcpp, len);
}
diff --git a/libc/debug/memset_chk.c b/libc/debug/memset_chk.c
index bfbc29d29..b48f740fb 100644
--- a/libc/debug/memset_chk.c
+++ b/libc/debug/memset_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -28,64 +28,5 @@ __memset_chk (dstpp, c, len, dstlen)
if (__builtin_expect (dstlen < len, 0))
__chk_fail ();
- long int dstp = (long int) dstpp;
-
- if (len >= 8)
- {
- size_t xlen;
- op_t cccc;
-
- cccc = (unsigned char) c;
- cccc |= cccc << 8;
- cccc |= cccc << 16;
- if (OPSIZ > 4)
- /* Do the shift in two steps to avoid warning if long has 32 bits. */
- cccc |= (cccc << 16) << 16;
-
- /* There are at least some bytes to set.
- No need to test for LEN == 0 in this alignment loop. */
- while (dstp % OPSIZ != 0)
- {
- ((byte *) dstp)[0] = c;
- dstp += 1;
- len -= 1;
- }
-
- /* Write 8 `op_t' per iteration until less than 8 `op_t' remain. */
- xlen = len / (OPSIZ * 8);
- while (xlen > 0)
- {
- ((op_t *) dstp)[0] = cccc;
- ((op_t *) dstp)[1] = cccc;
- ((op_t *) dstp)[2] = cccc;
- ((op_t *) dstp)[3] = cccc;
- ((op_t *) dstp)[4] = cccc;
- ((op_t *) dstp)[5] = cccc;
- ((op_t *) dstp)[6] = cccc;
- ((op_t *) dstp)[7] = cccc;
- dstp += 8 * OPSIZ;
- xlen -= 1;
- }
- len %= OPSIZ * 8;
-
- /* Write 1 `op_t' per iteration until less than OPSIZ bytes remain. */
- xlen = len / OPSIZ;
- while (xlen > 0)
- {
- ((op_t *) dstp)[0] = cccc;
- dstp += OPSIZ;
- xlen -= 1;
- }
- len %= OPSIZ;
- }
-
- /* Write the last few bytes. */
- while (len > 0)
- {
- ((byte *) dstp)[0] = c;
- dstp += 1;
- len -= 1;
- }
-
- return dstpp;
+ return memset (dstpp, c, len);
}
diff --git a/libc/debug/noophooks.c b/libc/debug/noophooks.c
index d0a998218..9c0716720 100644
--- a/libc/debug/noophooks.c
+++ b/libc/debug/noophooks.c
@@ -1,5 +1,5 @@
/* Noop hooks for the instrumenting functions.
- Copyright (C) 1999-2013 Free Software Foundation, Inc.
+ Copyright (C) 1999-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
diff --git a/libc/debug/obprintf_chk.c b/libc/debug/obprintf_chk.c
index f83b5498a..b9431b9a7 100644
--- a/libc/debug/obprintf_chk.c
+++ b/libc/debug/obprintf_chk.c
@@ -1,5 +1,5 @@
/* Print output of stream to given obstack.
- Copyright (C) 1996-2013 Free Software Foundation, Inc.
+ Copyright (C) 1996-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
diff --git a/libc/debug/pcprofile.c b/libc/debug/pcprofile.c
index ad860dfbe..827f41315 100644
--- a/libc/debug/pcprofile.c
+++ b/libc/debug/pcprofile.c
@@ -1,5 +1,5 @@
/* Profile PC and write result to FIFO.
- Copyright (C) 1999-2013 Free Software Foundation, Inc.
+ Copyright (C) 1999-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
diff --git a/libc/debug/pcprofiledump.c b/libc/debug/pcprofiledump.c
index ce6096de0..c7c749fa5 100644
--- a/libc/debug/pcprofiledump.c
+++ b/libc/debug/pcprofiledump.c
@@ -1,5 +1,5 @@
/* Dump information generated by PC profiling.
- Copyright (C) 1999-2013 Free Software Foundation, Inc.
+ Copyright (C) 1999-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1999.
@@ -226,6 +226,6 @@ print_version (FILE *stream, struct argp_state *state)
Copyright (C) %s Free Software Foundation, Inc.\n\
This is free software; see the source for copying conditions. There is NO\n\
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
-"), "2013");
+"), "2014");
fprintf (stream, gettext ("Written by %s.\n"), "Ulrich Drepper");
}
diff --git a/libc/debug/poll_chk.c b/libc/debug/poll_chk.c
index 374fb37c2..ccd789bb7 100644
--- a/libc/debug/poll_chk.c
+++ b/libc/debug/poll_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2012-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2012-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/ppoll_chk.c b/libc/debug/ppoll_chk.c
index ee175865a..214c4c644 100644
--- a/libc/debug/ppoll_chk.c
+++ b/libc/debug/ppoll_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2012-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2012-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/pread64_chk.c b/libc/debug/pread64_chk.c
index 78c554e6e..eedb6aeb1 100644
--- a/libc/debug/pread64_chk.c
+++ b/libc/debug/pread64_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2005-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/pread_chk.c b/libc/debug/pread_chk.c
index 8a652d567..c14b87f5d 100644
--- a/libc/debug/pread_chk.c
+++ b/libc/debug/pread_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2005-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/printf_chk.c b/libc/debug/printf_chk.c
index e61826d3f..33e1725db 100644
--- a/libc/debug/printf_chk.c
+++ b/libc/debug/printf_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/read_chk.c b/libc/debug/read_chk.c
index 3df1ce82d..643cd0e5b 100644
--- a/libc/debug/read_chk.c
+++ b/libc/debug/read_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2005-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/readlink_chk.c b/libc/debug/readlink_chk.c
index 0510ffc3a..5a5cb7f0b 100644
--- a/libc/debug/readlink_chk.c
+++ b/libc/debug/readlink_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2005-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/readlinkat_chk.c b/libc/debug/readlinkat_chk.c
index 29d282bbc..24bd05e68 100644
--- a/libc/debug/readlinkat_chk.c
+++ b/libc/debug/readlinkat_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2006-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2006-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/readonly-area.c b/libc/debug/readonly-area.c
index 1123e2618..ec6d2bab2 100644
--- a/libc/debug/readonly-area.c
+++ b/libc/debug/readonly-area.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2004-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2004-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/realpath_chk.c b/libc/debug/realpath_chk.c
index bc60b3212..76c19ad50 100644
--- a/libc/debug/realpath_chk.c
+++ b/libc/debug/realpath_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2005-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/recv_chk.c b/libc/debug/recv_chk.c
index 00134d898..0bd2f499f 100644
--- a/libc/debug/recv_chk.c
+++ b/libc/debug/recv_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2005-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/recvfrom_chk.c b/libc/debug/recvfrom_chk.c
index bfb246752..bc7fde624 100644
--- a/libc/debug/recvfrom_chk.c
+++ b/libc/debug/recvfrom_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2005-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/segfault.c b/libc/debug/segfault.c
index e05138097..83eb6b287 100644
--- a/libc/debug/segfault.c
+++ b/libc/debug/segfault.c
@@ -1,5 +1,5 @@
/* Catch segmentation faults and print backtrace.
- Copyright (C) 1998-2013 Free Software Foundation, Inc.
+ Copyright (C) 1998-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
diff --git a/libc/debug/snprintf_chk.c b/libc/debug/snprintf_chk.c
index 867c1be7f..2f91c4740 100644
--- a/libc/debug/snprintf_chk.c
+++ b/libc/debug/snprintf_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/sprintf_chk.c b/libc/debug/sprintf_chk.c
index f43ed4d87..122b6810e 100644
--- a/libc/debug/sprintf_chk.c
+++ b/libc/debug/sprintf_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/stack_chk_fail.c b/libc/debug/stack_chk_fail.c
index 01feb444a..9105d0076 100644
--- a/libc/debug/stack_chk_fail.c
+++ b/libc/debug/stack_chk_fail.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2005-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/stack_chk_fail_local.c b/libc/debug/stack_chk_fail_local.c
index a83a5e1c2..c99ff5de1 100644
--- a/libc/debug/stack_chk_fail_local.c
+++ b/libc/debug/stack_chk_fail_local.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2005-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/stpcpy_chk.c b/libc/debug/stpcpy_chk.c
index b16b83d16..d7228ec91 100644
--- a/libc/debug/stpcpy_chk.c
+++ b/libc/debug/stpcpy_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1992-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/stpncpy_chk.c b/libc/debug/stpncpy_chk.c
index 35a2c2350..17e6d9565 100644
--- a/libc/debug/stpncpy_chk.c
+++ b/libc/debug/stpncpy_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1993-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -25,60 +25,8 @@
char *
__stpncpy_chk (char *dest, const char *src, size_t n, size_t destlen)
{
- char c;
- char *s = dest;
-
if (__builtin_expect (destlen < n, 0))
__chk_fail ();
- if (n >= 4)
- {
- size_t n4 = n >> 2;
-
- for (;;)
- {
- c = *src++;
- *dest++ = c;
- if (c == '\0')
- break;
- c = *src++;
- *dest++ = c;
- if (c == '\0')
- break;
- c = *src++;
- *dest++ = c;
- if (c == '\0')
- break;
- c = *src++;
- *dest++ = c;
- if (c == '\0')
- break;
- if (--n4 == 0)
- goto last_chars;
- }
- n -= dest - s;
- goto zero_fill;
- }
-
- last_chars:
- n &= 3;
- if (n == 0)
- return dest;
-
- for (;;)
- {
- c = *src++;
- --n;
- *dest++ = c;
- if (c == '\0')
- break;
- if (n == 0)
- return dest;
- }
-
- zero_fill:
- while (n-- > 0)
- dest[n] = '\0';
-
- return dest - 1;
+ return __stpncpy (dest, src, n);
}
diff --git a/libc/debug/strcat_chk.c b/libc/debug/strcat_chk.c
index 20623d490..e4e91d30d 100644
--- a/libc/debug/strcat_chk.c
+++ b/libc/debug/strcat_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/strcpy_chk.c b/libc/debug/strcpy_chk.c
index 81bf46f99..92549ae71 100644
--- a/libc/debug/strcpy_chk.c
+++ b/libc/debug/strcpy_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/strncat_chk.c b/libc/debug/strncat_chk.c
index 5e14affd9..955fc830c 100644
--- a/libc/debug/strncat_chk.c
+++ b/libc/debug/strncat_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/strncpy_chk.c b/libc/debug/strncpy_chk.c
index d067bd9ac..4c94ce5fd 100644
--- a/libc/debug/strncpy_chk.c
+++ b/libc/debug/strncpy_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -26,63 +26,8 @@ __strncpy_chk (s1, s2, n, s1len)
size_t n;
size_t s1len;
{
- char c;
- char *s = s1;
-
if (__builtin_expect (s1len < n, 0))
__chk_fail ();
- --s1;
-
- if (n >= 4)
- {
- size_t n4 = n >> 2;
-
- for (;;)
- {
- c = *s2++;
- *++s1 = c;
- if (c == '\0')
- break;
- c = *s2++;
- *++s1 = c;
- if (c == '\0')
- break;
- c = *s2++;
- *++s1 = c;
- if (c == '\0')
- break;
- c = *s2++;
- *++s1 = c;
- if (c == '\0')
- break;
- if (--n4 == 0)
- goto last_chars;
- }
- n = n - (s1 - s) - 1;
- if (n == 0)
- return s;
- goto zero_fill;
- }
-
- last_chars:
- n &= 3;
- if (n == 0)
- return s;
-
- do
- {
- c = *s2++;
- *++s1 = c;
- if (--n == 0)
- return s;
- }
- while (c != '\0');
-
- zero_fill:
- do
- *++s1 = '\0';
- while (--n > 0);
-
- return s;
+ return strncpy (s1, s2, n);
}
diff --git a/libc/debug/swprintf_chk.c b/libc/debug/swprintf_chk.c
index 6667df5be..90c84af90 100644
--- a/libc/debug/swprintf_chk.c
+++ b/libc/debug/swprintf_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/test-stpcpy_chk-ifunc.c b/libc/debug/test-stpcpy_chk-ifunc.c
index 8122277b4..91bd62859 100644
--- a/libc/debug/test-stpcpy_chk-ifunc.c
+++ b/libc/debug/test-stpcpy_chk-ifunc.c
@@ -1,5 +1,5 @@
/* Test and measure IFUNC implementations of stpcpy checking function.
- Copyright (C) 2012-2013 Free Software Foundation, Inc.
+ Copyright (C) 2012-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/test-stpcpy_chk.c b/libc/debug/test-stpcpy_chk.c
index 1a60e7759..7c43da82b 100644
--- a/libc/debug/test-stpcpy_chk.c
+++ b/libc/debug/test-stpcpy_chk.c
@@ -1,5 +1,5 @@
/* Test and measure stpcpy checking functions.
- Copyright (C) 1999-2013 Free Software Foundation, Inc.
+ Copyright (C) 1999-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Written by Jakub Jelinek <jakub@redhat.com>, 1999.
diff --git a/libc/debug/test-strcpy_chk-ifunc.c b/libc/debug/test-strcpy_chk-ifunc.c
index fc79f4e6b..8fe9fad8a 100644
--- a/libc/debug/test-strcpy_chk-ifunc.c
+++ b/libc/debug/test-strcpy_chk-ifunc.c
@@ -1,5 +1,5 @@
/* Test and measure IFUNC implementations of strcpy checking function.
- Copyright (C) 2012-2013 Free Software Foundation, Inc.
+ Copyright (C) 2012-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/test-strcpy_chk.c b/libc/debug/test-strcpy_chk.c
index 736ef3cd7..62a581d19 100644
--- a/libc/debug/test-strcpy_chk.c
+++ b/libc/debug/test-strcpy_chk.c
@@ -1,5 +1,5 @@
/* Test and measure __strcpy_chk functions.
- Copyright (C) 1999-2013 Free Software Foundation, Inc.
+ Copyright (C) 1999-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Written by Jakub Jelinek <jakub@redhat.com>, 1999.
diff --git a/libc/debug/tst-backtrace.h b/libc/debug/tst-backtrace.h
index 0a89488f0..fc23a0edc 100644
--- a/libc/debug/tst-backtrace.h
+++ b/libc/debug/tst-backtrace.h
@@ -1,6 +1,6 @@
/* Test backtrace and backtrace_symbols: common code for examining
backtraces.
- Copyright (C) 2013 Free Software Foundation, Inc.
+ Copyright (C) 2013-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/tst-backtrace2.c b/libc/debug/tst-backtrace2.c
index 1bdef0d26..30f82e575 100644
--- a/libc/debug/tst-backtrace2.c
+++ b/libc/debug/tst-backtrace2.c
@@ -1,5 +1,5 @@
/* Test backtrace and backtrace_symbols.
- Copyright (C) 2009-2013 Free Software Foundation, Inc.
+ Copyright (C) 2009-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/tst-backtrace3.c b/libc/debug/tst-backtrace3.c
index 182f42392..c7fc76e53 100644
--- a/libc/debug/tst-backtrace3.c
+++ b/libc/debug/tst-backtrace3.c
@@ -1,5 +1,5 @@
/* Test backtrace and backtrace_symbols for recursive calls.
- Copyright (C) 2010-2013 Free Software Foundation, Inc.
+ Copyright (C) 2010-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/tst-backtrace4.c b/libc/debug/tst-backtrace4.c
index 9c0c2a2a7..a98775a6e 100644
--- a/libc/debug/tst-backtrace4.c
+++ b/libc/debug/tst-backtrace4.c
@@ -1,5 +1,5 @@
/* Test backtrace and backtrace_symbols for signal frames.
- Copyright (C) 2011-2013 Free Software Foundation, Inc.
+ Copyright (C) 2011-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/tst-backtrace5.c b/libc/debug/tst-backtrace5.c
index 51180c1c8..4f5521559 100644
--- a/libc/debug/tst-backtrace5.c
+++ b/libc/debug/tst-backtrace5.c
@@ -1,6 +1,6 @@
/* Test backtrace and backtrace_symbols for signal frames, where a
system call was interrupted by a signal.
- Copyright (C) 2011-2013 Free Software Foundation, Inc.
+ Copyright (C) 2011-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/tst-backtrace6.c b/libc/debug/tst-backtrace6.c
index cd8dbcd1d..a5227eb06 100644
--- a/libc/debug/tst-backtrace6.c
+++ b/libc/debug/tst-backtrace6.c
@@ -1,6 +1,6 @@
/* Test backtrace and backtrace_symbols for signal frames, where a
system call was interrupted by a signal.
- Copyright (C) 2013 Free Software Foundation, Inc.
+ Copyright (C) 2013-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/tst-chk1.c b/libc/debug/tst-chk1.c
index 5133f6e26..e8ab9bc73 100644
--- a/libc/debug/tst-chk1.c
+++ b/libc/debug/tst-chk1.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2004-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2004-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Jakub Jelinek <jakub@redhat.com>, 2004.
diff --git a/libc/debug/ttyname_r_chk.c b/libc/debug/ttyname_r_chk.c
index 0f4dd49e1..ac67879ef 100644
--- a/libc/debug/ttyname_r_chk.c
+++ b/libc/debug/ttyname_r_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2005-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/vasprintf_chk.c b/libc/debug/vasprintf_chk.c
index 64c458028..a1ed46b8f 100644
--- a/libc/debug/vasprintf_chk.c
+++ b/libc/debug/vasprintf_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1995-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/vdprintf_chk.c b/libc/debug/vdprintf_chk.c
index 95677774c..940f579ae 100644
--- a/libc/debug/vdprintf_chk.c
+++ b/libc/debug/vdprintf_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1995-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/vfprintf_chk.c b/libc/debug/vfprintf_chk.c
index 30f51d6c7..86d258e61 100644
--- a/libc/debug/vfprintf_chk.c
+++ b/libc/debug/vfprintf_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/vfwprintf_chk.c b/libc/debug/vfwprintf_chk.c
index 0da11695a..9476b7593 100644
--- a/libc/debug/vfwprintf_chk.c
+++ b/libc/debug/vfwprintf_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/vprintf_chk.c b/libc/debug/vprintf_chk.c
index cdad3a963..8bc4bf6ae 100644
--- a/libc/debug/vprintf_chk.c
+++ b/libc/debug/vprintf_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/vsnprintf_chk.c b/libc/debug/vsnprintf_chk.c
index 8924f9964..f28d98ed4 100644
--- a/libc/debug/vsnprintf_chk.c
+++ b/libc/debug/vsnprintf_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/vsprintf_chk.c b/libc/debug/vsprintf_chk.c
index d1ed6b2dd..133f03b6f 100644
--- a/libc/debug/vsprintf_chk.c
+++ b/libc/debug/vsprintf_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1994-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1994-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/vswprintf_chk.c b/libc/debug/vswprintf_chk.c
index b298a0b74..c8e6e4455 100644
--- a/libc/debug/vswprintf_chk.c
+++ b/libc/debug/vswprintf_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/vwprintf_chk.c b/libc/debug/vwprintf_chk.c
index f11da9301..f606bee15 100644
--- a/libc/debug/vwprintf_chk.c
+++ b/libc/debug/vwprintf_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/warning-nop.c b/libc/debug/warning-nop.c
index 8776c50c4..2a16f2791 100644
--- a/libc/debug/warning-nop.c
+++ b/libc/debug/warning-nop.c
@@ -1,5 +1,5 @@
/* Dummy nop functions to elicit link-time warnings.
- Copyright (C) 2005-2013 Free Software Foundation, Inc.
+ Copyright (C) 2005-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/wcpcpy_chk.c b/libc/debug/wcpcpy_chk.c
index 7c836e6bf..3972680e2 100644
--- a/libc/debug/wcpcpy_chk.c
+++ b/libc/debug/wcpcpy_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1996-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1996.
diff --git a/libc/debug/wcpncpy_chk.c b/libc/debug/wcpncpy_chk.c
index a24e8fa20..b552a2ece 100644
--- a/libc/debug/wcpncpy_chk.c
+++ b/libc/debug/wcpncpy_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1995-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995.
diff --git a/libc/debug/wcrtomb_chk.c b/libc/debug/wcrtomb_chk.c
index 7dc696715..5af94dbef 100644
--- a/libc/debug/wcrtomb_chk.c
+++ b/libc/debug/wcrtomb_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2005-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/wcscat_chk.c b/libc/debug/wcscat_chk.c
index 2bd7e7635..2ee577ce1 100644
--- a/libc/debug/wcscat_chk.c
+++ b/libc/debug/wcscat_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1995-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995.
diff --git a/libc/debug/wcscpy_chk.c b/libc/debug/wcscpy_chk.c
index 61092c3d9..c64a9f67d 100644
--- a/libc/debug/wcscpy_chk.c
+++ b/libc/debug/wcscpy_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1995-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995.
diff --git a/libc/debug/wcsncat_chk.c b/libc/debug/wcsncat_chk.c
index 650e93d17..0de4e11d6 100644
--- a/libc/debug/wcsncat_chk.c
+++ b/libc/debug/wcsncat_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1995-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995.
diff --git a/libc/debug/wcsncpy_chk.c b/libc/debug/wcsncpy_chk.c
index 89762d04b..abecabf0d 100644
--- a/libc/debug/wcsncpy_chk.c
+++ b/libc/debug/wcsncpy_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1995-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995.
diff --git a/libc/debug/wcsnrtombs_chk.c b/libc/debug/wcsnrtombs_chk.c
index 47d649b65..122cd4b7f 100644
--- a/libc/debug/wcsnrtombs_chk.c
+++ b/libc/debug/wcsnrtombs_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2005-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/wcsrtombs_chk.c b/libc/debug/wcsrtombs_chk.c
index cd1a1074e..48ae91df4 100644
--- a/libc/debug/wcsrtombs_chk.c
+++ b/libc/debug/wcsrtombs_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2005-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/wcstombs_chk.c b/libc/debug/wcstombs_chk.c
index 2de1d9f8b..f704cdc3e 100644
--- a/libc/debug/wcstombs_chk.c
+++ b/libc/debug/wcstombs_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2005-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/wctomb_chk.c b/libc/debug/wctomb_chk.c
index 3b6b3073e..05b00d65c 100644
--- a/libc/debug/wctomb_chk.c
+++ b/libc/debug/wctomb_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005-2013 Free Software Foundation, Inc.
+/* Copyright (C) 2005-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/wmemcpy_chk.c b/libc/debug/wmemcpy_chk.c
index fe5fd9c28..daeb44e03 100644
--- a/libc/debug/wmemcpy_chk.c
+++ b/libc/debug/wmemcpy_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1996-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@gnu.org>, 1996.
diff --git a/libc/debug/wmemmove_chk.c b/libc/debug/wmemmove_chk.c
index 474c9d063..59462cda3 100644
--- a/libc/debug/wmemmove_chk.c
+++ b/libc/debug/wmemmove_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1996-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper, <drepper@gnu.ai.mit.edu>
diff --git a/libc/debug/wmempcpy_chk.c b/libc/debug/wmempcpy_chk.c
index 1fe3511bb..10be83c68 100644
--- a/libc/debug/wmempcpy_chk.c
+++ b/libc/debug/wmempcpy_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1999-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@gnu.org>, 1999.
diff --git a/libc/debug/wmemset_chk.c b/libc/debug/wmemset_chk.c
index 537cd2a81..4caabbe42 100644
--- a/libc/debug/wmemset_chk.c
+++ b/libc/debug/wmemset_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1996-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@gnu.org>, 1996.
diff --git a/libc/debug/wprintf_chk.c b/libc/debug/wprintf_chk.c
index 2b8054a36..d78720620 100644
--- a/libc/debug/wprintf_chk.c
+++ b/libc/debug/wprintf_chk.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2013 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2014 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/libc/debug/xtrace.sh b/libc/debug/xtrace.sh
index d3e7f3a70..1e7635cbe 100755
--- a/libc/debug/xtrace.sh
+++ b/libc/debug/xtrace.sh
@@ -1,5 +1,5 @@
#! @BASH@
-# Copyright (C) 1999-2013 Free Software Foundation, Inc.
+# Copyright (C) 1999-2014 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
# Contributed by Ulrich Drepper <drepper@gnu.org>, 1999.
@@ -64,7 +64,7 @@ do_version() {
printf $"Copyright (C) %s Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-" "2013"
+" "2014"
printf $"Written by %s.
" "Ulrich Drepper"
exit 0