]> git.ipfire.org Git - thirdparty/libarchive.git/commit
RAR5 reader: fixed big-endian problems 1102/head
authorGrzegorz Antoniak <ga@anadoxin.org>
Fri, 7 Dec 2018 06:37:30 +0000 (07:37 +0100)
committerGrzegorz Antoniak <ga@anadoxin.org>
Fri, 7 Dec 2018 06:37:30 +0000 (07:37 +0100)
commit288b40530077170de500cb517f5c428752f93116
tree5ee224021c5bf6088ec44e9eee8cc810ab0b3104
parentbc7017b56381788f0a3d68057f2304d0f8f6d3bb
RAR5 reader: fixed big-endian problems

The reader has assumed it's running on little-endian. The commit changes
direct memory reads to archive_le* function calls, which should allow
the reader to run on big-endian machines as well.

Changes were needed in the reader itself and in the file holding
reader's test cases.

The commit also removes 1 warning encountered when compiling under GCC
8 on PowerPC architecture.

Fixes #1097
libarchive/archive_read_support_format_rar5.c
libarchive/test/test_read_format_rar5.c