mirror of
https://github.com/hanzoai/bufferutil.git
synced 2026-09-24 16:57:30 +00:00
Fix masking done in Mask alignment preamble
This commit is contained in:
committed by
Tom Atkinson
parent
18eaedec27
commit
aa4d7b18a1
+1
-1
@@ -121,7 +121,7 @@ protected:
|
||||
/* Alignment preamble */
|
||||
size_t index;
|
||||
for (index = 0; index < length && (reinterpret_cast<size_t>(from) & 0x07); index++)
|
||||
*to++ ^= mask[index % 4];
|
||||
*to++ = *from++ ^ mask[index % 4];
|
||||
length -= index;
|
||||
if (!length)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user