isa-l/tests/fuzz
Ilya Leoshkevich d3cfb2fb77 Fix s390 build
The goal of this patch is to make isa-l testsuite pass on s390 with
minimal changes to the library. The one and only reason isa-l does not
work on s390 at the moment is that s390 is big-endian, and isa-l
assumes little-endian at a lot of places.

There are two flavors of this: loading/storing integers from/to
memory, and overlapping structs. Loads/stores are already helpfully
wrapped by unaligned.h header, so replace the functions there with
endianness-aware variants. Solve struct member overlap by reversing
their order on big-endian.

Also, fix a couple of usages of uninitialized memory in the testsuite
(found with MemorySanitizer).

Fixes s390x part of #188.

Change-Id: Iaf14a113bd266900192cc8b44212f8a47a8c7753
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
2022-01-04 11:06:17 -07:00
..
igzip_checked_inflate_fuzz_test.c igzip: Implement limited window size for inflate 2018-09-20 11:12:02 -07:00
igzip_dump_inflate_corpus.c igzip: Fixup a few labels and return warnings 2018-11-29 16:37:56 -07:00
igzip_fuzz_inflate.c aarch64: Cleanup build issues 2019-03-20 10:15:40 +08:00
igzip_simple_inflate_fuzz_test.c test: Add llvm fuzz testing 2017-11-17 17:28:27 -07:00
igzip_simple_round_trip_fuzz_test.c Fix s390 build 2022-01-04 11:06:17 -07:00
Makefile.am test: Change fuzz object to link .o instead of .lo 2018-05-01 16:30:45 -07:00
Makefile.unx test: Add llvm fuzz testing 2017-11-17 17:28:27 -07:00