Original Post
Hi all,
Probably a stupid question - oh well here goes...
This is memory before the allocation:
00990EA0 DD DD DD DD DD DD DD DD ........
00990EA8 DD DD DD DD DD DD DD DD ........
00990EB0 DD DD DD DD DD DD DD DD ........
00990EB8 DD DD DD DD DD DD DD DD ........
00990EC0 DD DD DD DD DD DD DD 00 ........
00990EC8 00 03 00 00 31 01 00 00 ....1...
This is the allocation statement:
unsigned char *buffer = (unsigned char*)malloc(32);
This is the memory after the allocation:
00990EA0 CD CD CD CD CD CD CD CD ÍÍÍÍÍÍÍÍ
00990EA8 CD CD CD CD CD CD CD CD ÍÍÍÍÍÍÍÍ
00990EB0 CD CD CD CD CD CD CD CD ÍÍÍÍÍÍÍÍ
00990EB8 CD CD CD CD CD CD CD CD ÍÍÍÍÍÍÍÍ
00990EC0 FD FD FD FD DD DD DD 00 ýýýý....
00990EC8 51 00 00 00 31 01 00 00 Q...1...
As far as I understand only the first 32 bytes should have
been set to CD (undefined, right?) - so what''s going on in
the memory?!?
thnx,
atlnewbie