[glibc] 01/02: debian/patches/sparc/cvs-test-strncmp.diff: new patch from upstream to fix wcsmbs/test-wcsncmp on architecture with strong alignment. Closes: #825865.
This is an automated email from the git hooks/post-receive script.
aurel32 pushed a commit to branch glibc-2.24
in repository glibc.
commit 4b78fdcd8cbcfe4a6d50deadeacc912897ace065
Author: Aurelien Jarno <aurelien@aurel32.net>
Date: Sat Aug 6 23:17:58 2016 +0200
debian/patches/sparc/cvs-test-strncmp.diff: new patch from upstream to fix wcsmbs/test-wcsncmp on architecture with strong alignment. Closes: #825865.
---
debian/changelog | 3 +++
debian/patches/series | 1 +
debian/patches/sparc/cvs-test-strncmp.diff | 28 ++++++++++++++++++++++++++++
3 files changed, 32 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 8a984c0..86f1a77 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,9 @@ glibc (2.24-0experimental1) UNRELEASED; urgency=medium
[ Aurelien Jarno ]
* debian/patches/git-updates.diff: update from upstream stable branch.
+ * debian/patches/sparc/cvs-test-strncmp.diff: new patch from upstream to
+ fix wcsmbs/test-wcsncmp on architecture with strong alignment. Closes:
+ #825865.
-- Samuel Thibault <sthibault@debian.org> Thu, 04 Aug 2016 09:20:04 +0200
diff --git a/debian/patches/series b/debian/patches/series
index 35b3ec5..1bc08b8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -166,6 +166,7 @@ sh4/local-fpscr_values.diff
sparc/local-sparcv9-target.diff
sparc/submitted-sparc64-socketcall.diff
sparc/submitted-sparc-fdim.diff
+sparc/cvs-test-strncmp.diff
all/local-alias-et_EE.diff
all/local-remove-manual.diff
diff --git a/debian/patches/sparc/cvs-test-strncmp.diff b/debian/patches/sparc/cvs-test-strncmp.diff
new file mode 100644
index 0000000..a4625ea
--- /dev/null
+++ b/debian/patches/sparc/cvs-test-strncmp.diff
@@ -0,0 +1,28 @@
+2016-08-02 David S. Miller <davem@davemloft.net>
+
+ * string/test-strncmp.c (do_test_limit): Make sure the test data
+ stream is aligned as required for the type "CHAR".
+ (do_test): Likewise.
+
+--- a/string/test-strncmp.c
++++ b/string/test-strncmp.c
+@@ -156,6 +156,9 @@ do_test_limit (size_t align1, size_t align2, size_t len, size_t n, int max_char,
+ size_t i, align_n;
+ CHAR *s1, *s2;
+
++ align1 &= ~(CHARBYTES - 1);
++ align2 &= ~(CHARBYTES - 1);
++
+ if (n == 0)
+ {
+ s1 = (CHAR *) (buf1 + page_size);
+@@ -204,6 +207,9 @@ do_test (size_t align1, size_t align2, size_t len, size_t n, int max_char,
+ size_t i;
+ CHAR *s1, *s2;
+
++ align1 &= ~(CHARBYTES - 1);
++ align2 &= ~(CHARBYTES - 1);
++
+ if (n == 0)
+ return;
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-glibc/glibc.git
Reply to: