Bugzilla – Bug 1212120
libnbcompat: broken sha256 hashes with -fstrict-aliasing
Last modified: 2023-06-08 01:03:35 UTC
This has already been fixed upstream in [1], the core issue is that the sha2.c code has a strict aliasing violation which GCC >= 11 optimises in a way that produces incorrect sha256 hashes. This is easily verifiable by using "nmtree -k sha256digest -c" on Tumbleweed. [1]: https://github.com/archiecobbs/libnbcompat/commit/864c1cf42c2c605636008626f171caf6410421cb