-
Notifications
You must be signed in to change notification settings - Fork 73
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
UB sanitizer reports NULL pointer access via SymCryptEcurveAllocate #10
Comments
This is due to this macro: |
@NielsFerguson FYI, for MsQuic, we have the following abstraction (Linux implementation): https:/microsoft/msquic/blob/4c1527906233a8047068800d8b273852bb41a504/src/inc/msquic_linux.h#L166 #define FIELD_OFFSET(type, field) offsetof(type, field) |
We use offsetof in SymCrypt now too |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If compiled with UndefinedBehaviorSanitizer (clang with
-fsanitize=undefined
, on Linux 64 bit), execution of this program will print:The text was updated successfully, but these errors were encountered: