Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F110985140
D33474.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
598 B
Referenced Files
None
Subscribers
None
D33474.id.diff
View Options
diff --git a/sys/crypto/aesni/aesni_ghash.c b/sys/crypto/aesni/aesni_ghash.c
--- a/sys/crypto/aesni/aesni_ghash.c
+++ b/sys/crypto/aesni/aesni_ghash.c
@@ -799,8 +799,9 @@
}
tmp1 = _mm_aesenc_si128(tmp1, KEY[nr-1]);
tmp1 = _mm_aesenclast_si128(tmp1, KEY[nr]);
- tmp1 = _mm_xor_si128(tmp1,
- _mm_loadu_si128(&((const __m128i *)in)[k]));
+ last_block = _mm_setzero_si128();
+ memcpy(&last_block, &((const __m128i *)in)[k], nbytes%16);
+ tmp1 = _mm_xor_si128(tmp1, last_block);
last_block = tmp1;
for (j=0; j<nbytes%16; j++)
out[k*16+j] = ((unsigned char*)&last_block)[j];
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 26, 7:47 PM (6 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16857002
Default Alt Text
D33474.id.diff (598 B)
Attached To
Mode
D33474: aesni: Fix yet another out-of-bounds read
Attached
Detach File
Event Timeline
Log In to Comment