Replies: 1 comment
-
The address of the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In code produced by MSVC 4.1,
for
loops iterating over static constant-sized arrays are compiled using a temporary register variable (pcwbuffer
in the example below) that is incremented by the object size (wchar_t
- 2 bytes) and compared to the static address following the number of objects (instead of an index count). As an example, the MSVC 4.1 sources (inithelp.c) contains:but Ghidra produces:
where these definition are used:
from the following 32-bit PE file:
How can a new rule be created to get better output?
Beta Was this translation helpful? Give feedback.
All reactions