This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch, master, updated. glibc-2.13-72-g821ae71


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  821ae7137b7b4dacdd7fcb73e4f3d479afed1014 (commit)
      from  e513f34605747f43eed259519b6fb847591861d2 (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=821ae7137b7b4dacdd7fcb73e4f3d479afed1014

commit 821ae7137b7b4dacdd7fcb73e4f3d479afed1014
Author: Andreas Schwab <schwab@redhat.com>
Date:   Thu Apr 7 08:21:00 2011 +0200

    Revert "Fix strncmp page test to limit length to size of object"
    
    This reverts commit e513f34605747f43eed259519b6fb847591861d2.

diff --git a/ChangeLog b/ChangeLog
index 2f2ec75..fe86bc9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,3 @@
-2011-04-05  Andreas Schwab  <schwab@redhat.com>
-
-	* string/test-strncmp.c (do_page_test): Limit length to size of
-	object.
-
 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
 
 	* sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
diff --git a/string/test-strncmp.c b/string/test-strncmp.c
index 880b2be..00971df 100644
--- a/string/test-strncmp.c
+++ b/string/test-strncmp.c
@@ -204,7 +204,6 @@ do_page_test (size_t offset1, size_t offset2, char *s2)
 {
   char *s1;
   int exp_result;
-  size_t max_offset = offset1 > offset2 ? offset1 : offset2;
 
   if (offset1 >= page_size || offset2 >= page_size)
     return;
@@ -212,12 +211,12 @@ do_page_test (size_t offset1, size_t offset2, char *s2)
   s1 = (char *) (buf1 + offset1);
   s2 += offset2;
 
-  exp_result = *s1;
+  exp_result= *s1;
 
   FOR_EACH_IMPL (impl, 0)
     {
-      check_result (impl, s1, s2, page_size - max_offset, -exp_result);
-      check_result (impl, s2, s1, page_size - max_offset, exp_result);
+      check_result (impl, s1, s2, page_size, -exp_result);
+      check_result (impl, s2, s1, page_size, exp_result);
     }
 }
 

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog             |    5 -----
 string/test-strncmp.c |    7 +++----
 2 files changed, 3 insertions(+), 9 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]