]> Savannah Git Hosting - gnulib.git/commit
crc-x86_64: fix unaligned access
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 17 Jan 2025 06:58:55 +0000 (22:58 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 17 Jan 2025 07:01:42 +0000 (23:01 -0800)
commit59146234323977ae8815a6b8aa8c5a81298b19bb
treed12506e111287f484e67cfcbd76d0af92eb1a616
parent38197bf86dc80271af8992a4121d9497bccd265c
crc-x86_64: fix unaligned access

Problem reported by Bruno Haible in:
https://lists.gnu.org/r/bug-gnulib/2025-01/msg00142.html
* lib/crc.c (crc32_update_no_xor): Don’t pass unaligned buffer to
crc32_update_no_xor_pclmul.  No doubt there is a higher
performance fix, perhaps involving advancing byte-by-byte along
the buffer until we get to an aligned boundary, but at least this
should fix the alignment bug.
ChangeLog
lib/crc.c