Compilation fails with -O3 and GCC >= 11 #179
Labels
bug
Confirmed to be a bug in libxcrypt.
help wanted
The libxcrypt core developers do not plan to work on this themselves but would review a PR.
Compiling with -O3 on GCC tries to inline these function calls:
libxcrypt/lib/alg-sha1.c
Line 265 in 72f75aa
libxcrypt/lib/alg-sha1.c
Line 267 in 72f75aa
This triggers an overflow warning on this line, which fails the build due to -Werror:
libxcrypt/lib/alg-sha1.c
Line 244 in 72f75aa
Looking at the code a bit, I don't think this line is actually reachable in this case, so it's probably a false positive.
The text was updated successfully, but these errors were encountered: