]> git.ipfire.org Git - thirdparty/libarchive.git/commit
crc32: Precalculate table
authorTobias Stoeckmann <tobias@stoeckmann.org>
Tue, 2 Jun 2026 17:30:58 +0000 (19:30 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Tue, 2 Jun 2026 18:45:17 +0000 (20:45 +0200)
commit95154465d9028e6721b5e863fa485e2bcc692f09
treec5cd7ae42a3fda0f0f297a3d8aa14d00c81d9fa5
parent235165e3e5fb7ac4ba96e5585bb5ffc8868edc2e
crc32: Precalculate table

This avoids all possible concurrency issues.

As a bonus, turn the whole array const to move it into read-only
section.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
libarchive/archive_crc32.h