-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined Behavior Sanitizer "errors" #5476
Comments
Per my review, this isn't even the only place where we end up doing NULL+0 in that file. The code looks like it's from the We might want to sync with upstream. As to NULL+0, one workaround may be to pass |
This looks easy to fix, so I will.
This looks like a real bug, but it's not obvious to me what fix is right. @magnumripper you seem to have introduced this in 4320dbe so perhaps it's yours to look into? |
The mask is 16-bit anyway, and the previous code triggered clang UbSan: racf_kdfaes_fmt_plug.c:372:23: runtime error: left shift of 238 by 24 places cannot be represented in type 'int' See openwall#5476
The mask is 16-bit anyway, and the previous code triggered clang UbSan: racf_kdfaes_fmt_plug.c:372:23: runtime error: left shift of 238 by 24 places cannot be represented in type 'int' See openwall#5476
The mask is 16-bit anyway, and the previous code triggered clang UbSan: racf_kdfaes_fmt_plug.c:372:23: runtime error: left shift of 238 by 24 places cannot be represented in type 'int' See #5476
I'm puzzled as to why this is only detected by UbSan, but not ASan. Any ideas? |
No. The interesting thing is that the error message is very clear and direct! So I tried to debug it myself, but I couldn't [1]. [1] It's a non-OpenMP build, maybe I mixed things up when I tried it. |
@claudioandre-br Please try re-enabling these tests in whatever setup you had detected the errors. These two should be fine now. Thank you! |
They are already enabled. This is the log obtained this Monday.
|
The text was updated successfully, but these errors were encountered: