Home GnuPG

cipher/sha512: fix 'accessing 64 bytes in a region of size 8' warnings

Description

cipher/sha512: fix 'accessing 64 bytes in a region of size 8' warnings

* cipher/sha512.c (SHA512_STATESHA256_CONTEXT): Replace h0-h7 with h[8].
(do_sha512_transform_i386_ssse3, do_sha512_transform_ppc8)
(do_sha512_transform_ppc9, do_sha512_transform_s390x)
(do_sha512_final_s390x, sha512_init, sha384_init, sha512_256_init)
(sha512_224_init, do_transform_generic, sha512_final): Convert use
of h0-h7 to h[0]-h[7].

GCC-11 gives following warning on sha512.c:
warning: 'func' accessing 64 bytes in a region of size 8

  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>

Details

Provenance
jukiviliAuthored on Oct 17 2021, 1:58 PM
Parents
rCe4ce7ad0ecf6: poly1305: fix building with 'arm-linux-gnueabihf-gcc-11 -O3'
Branches
Unknown
Tags
Unknown