This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.16-ports-merge-443-g5d41d91
- From: hjl at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 6 Oct 2012 23:05:34 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.16-ports-merge-443-g5d41d91
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 5d41d91a3e819098c7b5730dfbafb4dd74c61817 (commit)
from f07621646892e079b4d1eec1b02e5ab03b578a5e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=5d41d91a3e819098c7b5730dfbafb4dd74c61817
commit 5d41d91a3e819098c7b5730dfbafb4dd74c61817
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Sat Oct 6 16:04:56 2012 -0700
Add a strstr test for page boundary
diff --git a/ChangeLog b/ChangeLog
index 1b2a455..fe1e019 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-10-06 H.J. Lu <hongjiu.lu@intel.com>
+
+ * string/test-strstr.c (check2): Add a test for page boundary.
+
2012-10-05 David S. Miller <davem@davemloft.net>
* sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
diff --git a/string/test-strstr.c b/string/test-strstr.c
index 1aebd35..d4c0efc 100644
--- a/string/test-strstr.c
+++ b/string/test-strstr.c
@@ -161,10 +161,15 @@ check2 (void)
{
const char s1[] = ", enable_static, \0, enable_shared, ";
char *exp_result;
+ char *s2 = (void *) buf1 + page_size - 18;
+ strcpy (s2, s1);
exp_result = stupid_strstr (s1, s1 + 18);
FOR_EACH_IMPL (impl, 0)
- check_result (impl, s1, s1 + 18, exp_result);
+ {
+ check_result (impl, s1, s1 + 18, exp_result);
+ check_result (impl, s2, s1 + 18, exp_result);
+ }
}
static int
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 4 ++++
string/test-strstr.c | 7 ++++++-
2 files changed, 10 insertions(+), 1 deletions(-)
hooks/post-receive
--
GNU C Library master sources