]> git.ipfire.org Git - thirdparty/libarchive.git/commit
lha: Precalculate CRC16 tables 3106/head
authorTobias Stoeckmann <tobias@stoeckmann.org>
Tue, 2 Jun 2026 17:41:34 +0000 (19:41 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Tue, 2 Jun 2026 18:45:18 +0000 (20:45 +0200)
commit3c2ffb01166604ef31751df73581a65a7613d23d
tree7e6c7557e6dac93a16cfdd718b10227b108dc235
parent95154465d9028e6721b5e863fa485e2bcc692f09
lha: Precalculate CRC16 tables

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_read_support_format_lha.c