-
-
Notifications
You must be signed in to change notification settings - Fork 706
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
unpredictableSeed
doesn't work with ASAN
#10613
Comments
I’d go as far as to say that this function should probably just call the system’s CSPRNG – instead of executing |
Arguably, but I wouldn't, unless its vDSO-based (if that is even possible to implement securely and fast enough), but mostly for performance reasons, although I can totally see a point security-wise, but if that's the argument, don't use On a side note, specifically to LLVM, this should be probably an intrinsic. |
Fails when compiling with
ldc2 -fsanitize=address %s
.Even though
-fsanitize=address
is specific to LDC, this is mainly a problem with the current Phobos implementation, assuming that the compiler wont poison the assembly block. In the current form, the assembly block should be marked asnaked
and optimally, be on a separate function to completely avoid conflicting registers.Also, compare and jump instructions shouldn't really be in an inline assembly block, but rather, on readable D code.
The text was updated successfully, but these errors were encountered: