aboutsummaryrefslogtreecommitdiff
path: root/string
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2013-02-08 01:10:40 +0000
committerJoseph Myers <joseph@codesourcery.com>2013-02-08 01:10:40 +0000
commitb2c9eff43c49d528c7ad3d0d91d03ccf0ae5ae0f (patch)
tree62894ea6e95d9a558d788eb9493110342c10bf73 /string
parentf1d70dad5381352b3cad04b5ee0dd0efe2627683 (diff)
downloadglibc-b2c9eff43c49d528c7ad3d0d91d03ccf0ae5ae0f.tar
glibc-b2c9eff43c49d528c7ad3d0d91d03ccf0ae5ae0f.tar.gz
glibc-b2c9eff43c49d528c7ad3d0d91d03ccf0ae5ae0f.tar.bz2
glibc-b2c9eff43c49d528c7ad3d0d91d03ccf0ae5ae0f.zip
Remove CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH for C code.
Diffstat (limited to 'string')
-rw-r--r--string/strcpy.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/string/strcpy.c b/string/strcpy.c
index a2bb8efcb3..9b713dcaa1 100644
--- a/string/strcpy.c
+++ b/string/strcpy.c
@@ -18,7 +18,6 @@
#include <stddef.h>
#include <string.h>
#include <memcopy.h>
-#include <bp-checks.h>
#undef strcpy
@@ -29,8 +28,8 @@ strcpy (dest, src)
const char *src;
{
char c;
- char *__unbounded s = (char *__unbounded) CHECK_BOUNDS_LOW (src);
- const ptrdiff_t off = CHECK_BOUNDS_LOW (dest) - s - 1;
+ char *__unbounded s = (char *__unbounded) src;
+ const ptrdiff_t off = dest - s - 1;
size_t n;
do
@@ -41,8 +40,6 @@ strcpy (dest, src)
while (c != '\0');
n = s - src;
- (void) CHECK_BOUNDS_HIGH (src + n);
- (void) CHECK_BOUNDS_HIGH (dest + n);
return dest;
}