-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Windows bitness confusion #739
Windows bitness confusion #739
Conversation
What happens now instead of |
I haven't seen an ERROR_PARTIAL_READ so far. My hunch is that most of them were caused by mixing bitness. Maybe if they get rarer it's worth letting them trickle up the stack. They might happen again with my environ change though because that reads another even bigger chunk. If that turns out to be an issue I'll handle them as before (either ignore as in cmdline() or convert to AccessDenied).
Will do. |
I'm still not sure about throwing NotImplementedError. It breaks the 32 bit test cases and it's probably unexpected. I'll see if I can actually fix the case where python is 32 bit and the target process is 64 bit. |
Okay, all the cases are implemented and seem to be working now. Unfortunately the change is quite large now. The different paths are similar but not quite the same I do not have a good idea on how to unify them yet. |
Can you fix conflicts ( |
Rebased. |
Please fix lines lenght so that they are no longer than 80 chars then it's good to go. |
Replace the hard-coded offsets into compiler generated ones by providing struct definitions for the data to be fetched from the target process. This allows a 64 bit process to query both other 64 bit and 32 bit processes. A 32 bit process currently can only query other 32 bit processes.
Okay. I changed the long lines. What do you think about adding an auto-formatting target (clang-format or uncrustify or some such) for the C code? |
I am not familiar with that. How would it work?
|
There could be a target that automatically rewrites the C files according to some configuration file. I'll upload a proposal. |
Thanks. I ll get back home and merge the pr (or you do if you have
|
Thanks
|
This is a greater refactoring of the calls to ReadProcessMemory. Currently all the catch-all error handlers mapping ERROR_PARTIAL_READ to AccessDenied are gone.
This builds on top of #738.