Subject: CVS commit: pkgsrc/pkgtools/digest/files
From: Michael Forney
Date: 2022-02-15 06:25:38
Message id: 20220215052538.7FE69FB24@cvs.NetBSD.org

Log Message:
digest: fix aliasing bug with gcc 11

gcc 11 with -O2 optimizes away the store of the bit length into the
last 8 bytes of the context buffer due to an aliasing violation
(stored through uint64_t, retrieved through uint32_t).

To fix this, import the NetBSD patch from christos[0] which makes
it use memcpy instead.

[0] \ 
http://cvsweb.netbsd.org/bsdweb.cgi/src/common/lib/libc/hash/sha2/sha2.c.diff?r1=1.12&r2=1.13

Files:
RevisionActionfile
1.28modifypkgsrc/pkgtools/digest/files/configure
1.10modifypkgsrc/pkgtools/digest/files/sha2.c