-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
0ab885e
commit b631703
Showing
2 changed files
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -580,8 +580,8 @@ MAKEFLAGS= | |
# Identity of this package. | ||
PACKAGE_NAME='nbsd-digest' | ||
PACKAGE_TARNAME='nbsd-digest' | ||
PACKAGE_VERSION='20211023' | ||
PACKAGE_STRING='nbsd-digest 20190127' | ||
PACKAGE_VERSION='20220214' | ||
PACKAGE_STRING='nbsd-digest 20220214' | ||
PACKAGE_BUGREPORT='[email protected]' | ||
PACKAGE_URL='' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters