-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Fix GetModuleFileName in GetProcessPath #110888
base: main
Are you sure you want to change the base?
Conversation
Ideally, we would have a test for this. Unfortunately, it is not easy to build one because of other issues in the end-to-end handling of longs paths (#58492). Have you done ad-hoc testing for this? Does the API return the path with or without |
Does there need to be a bound to prevent integer overflow? It would cause infinite loop again if path length exceeds 2^30, which is unlikely to happen in any situation. |
I do not think it would lead to infinite loop. |
That's interesting, in my manual test in #110800 using PInvoke to call |
Fixes #110800