]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix endianness problem in params_api_test
authorJuergen Christ <jchrist@linux.ibm.com>
Fri, 28 Jan 2022 09:53:43 +0000 (10:53 +0100)
committerPauli <pauli@openssl.org>
Tue, 1 Feb 2022 03:01:51 +0000 (14:01 +1100)
commit9927749ec2b8fc4b6146f0bd54cb6a44b8295974
tree5979a206531f9d18e4f9abfe926a5213c56d9b3e
parente180bf641ed23010073b0882d63d5dfd48409602
Fix endianness problem in params_api_test

On a big endian machine, we get test failures in params_api_test like

        # ERROR: (memory) 'buf1 == buf2' failed @ test/params_api_test.c:473
        # --- buf1
        # +++ buf2
        # 0000:-e901
        # 0000:+01e9
        #       ^^^^
        #
        # OPENSSL_TEST_RAND_ORDER=1643313367
        not ok 157 - iteration 3

They are due to an additional conversion copy.  Remove this copy to solve the
problem.

Signed-off-by: Juergen Christ <jchrist@linux.ibm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17608)
test/params_api_test.c