I'm writing a memory viewer which can both display a block of process memory and dump it to file. The following function works fine.
void SomeFunction(void)
{
char* buf = (char*) 0x00123ABC;
for(int i = 0; i < bigNumber; i++)
{
fprintf(fp, "%x", *buf);
}
}
However if I try this below...
I get this wierd output, both to file and screen. At certain points, I think at 32 or 36 bytes in, the data reads in ok but writing out seems write ahead or skip bytes, writing the *member variable oddly, with part of the next variable, *member_size added on.
I feel that maybe I am seeing some...
I am having problems accessing certain structure members, namely char* members. Instead of reading along the Char* array, it is incrementing it. What am I doing wrong?
#include <stdio.h>
#include <stdlib.h>
#define NAME 1162690894 // read as 4 bytes, spells NAME
void prnt_block( struct...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.