1 Fix <https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-7309>.
3 Taken from this upstream commit, sans ChangeLog updates and tests:
4 <https://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=3f635fb43389b54f682fc9ed2acc0b2aaf4a923d>.
6 diff --git a/sysdeps/x86_64/memcmp.S b/sysdeps/x86_64/memcmp.S
7 index 1fc487caa5..1322bb3b92 100644
8 --- a/sysdeps/x86_64/memcmp.S
9 +++ b/sysdeps/x86_64/memcmp.S
16 + /* Clear the upper 32 bits. */
19 + test %RDX_LP, %RDX_LP
29 /* Handle small chunks and last block of less than 32 bytes. */
32 @@ -156,7 +160,7 @@ L(A32):
38 /* Pre-unroll to be ready for unrolled 64B loop. */
41 @@ -178,7 +182,7 @@ L(A64):
49 movdqu (%rdi,%rsi), %xmm0
50 @@ -216,7 +220,7 @@ L(mt32):
58 movdqu (%rdi,%rsi), %xmm0
59 @@ -254,7 +258,7 @@ L(ATR):
68 @@ -325,7 +329,7 @@ L(ATR64main):
76 movdqa (%rdi,%rsi), %xmm0