Skip to content

Commit

Permalink
Fix misaligned address asan
Browse files Browse the repository at this point in the history
  • Loading branch information
mmooyyii committed Mar 25, 2024
1 parent 02e2c46 commit 2c2d931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/streamvbytedelta_x64_encode.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ static size_t streamvbyte_encode_SSE41_d1_init (const uint32_t* in, uint32_t cou
uint32_t dw = in[i] - prev; prev = in[i];
uint32_t symbol = (dw > 0x000000FF) + (dw > 0x0000FFFF) + (dw > 0x00FFFFFF);
key |= symbol << (i + i);
*((uint32_t*)dataPtr) = dw;
memcpy(dataPtr, &dw, 4);
dataPtr += 1 + symbol;
}
memcpy(keyPtr, &key, ((count & 7) + 3) >> 2);
Expand Down

0 comments on commit 2c2d931

Please sign in to comment.