-
Notifications
You must be signed in to change notification settings - Fork 488
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
Do we need to worry about strict provenance? #1813
Comments
Indeed, handles are pointer-sized only, with no more than 32 significant bits. This is true for handles to USER objects ( They are typed as pointers in the C header files, presumably because fixed width integer types are a somewhat recent (C99) addition to the C programming language, with |
One complicating factor is structures like OVERLAPPED. The
It's common to use this free member to pass a pointer to a struct. There could be similar issues for anything that passes through a |
Right now,
HWND
and friends are typed as anisize
; however, it seems that they are actually pointers. On certain platforms, it is considered invalid to use an*size
as a pointer. However, I'm not sure how this is handled on the Windows side of things. Do we need to worry about strict provenance?The text was updated successfully, but these errors were encountered: