Skip to content
Snippets Groups Projects
Commit ae1a863b authored by Kees Cook's avatar Kees Cook
Browse files

kunit/fortify: Fix memcmp() test to be amplitude agnostic


When memcmp() returns a non-zero value, only the signed bit has any
meaning. The actual value may differ between implementations.

Reported-by: default avatarNathan Chancellor <nathan@kernel.org>
Closes: https://github.com/ClangBuiltLinux/linux/issues/2025


Tested-by: default avatarNathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/20240518184020.work.604-kees@kernel.org


Signed-off-by: default avatarKees Cook <keescook@chromium.org>
parent 890a6481
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment