Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Strange Alloc Behavior

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4718

PostPosted: Mon Jan 25, 2016 10:24 pm    Post subject: Strange Alloc Behavior Reply with quote

Seems like alloc($1000) doesn't actually allocate a full 4096 bytes. I doubt this is a bug on CE's part, but could someone explain this to me?


_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Tue Jan 26, 2016 12:38 am    Post subject: Reply with quote

Hmm, I couldn't reproduce this on win 7 x64. Tried 32/64bit CE on 32 bit target, 64bit CE on itself, each time I got exactly 0x1000 bytes.

What happens if you forcefully try to write on the last 4 bytes of your buffer?

_________________
DO NOT PM me if you want help on making/fixing/using a hack.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25832
Location: The netherlands

PostPosted: Tue Jan 26, 2016 2:29 am    Post subject: Reply with quote

all memory is allocated, it's just an disassembler issue
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4718

PostPosted: Tue Jan 26, 2016 10:31 am    Post subject: Reply with quote

Yup - I wrote a few bytes before and past that boundary in the disassembler. It didn't produce any errors whatsoever, but the bytes past that boundary still didn't show up in the disassembler. I looked at it in the memory hex view and all those bytes showed up just fine. After the few bytes I wrote there were also all 0s through derp+FFF, as it should be. Seems like a disassembler issue.

If it helps, I'm using win 7 x64. I tried the same tests as Gniarf and got this problem with all 3 tests.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Tue Jan 26, 2016 1:25 pm    Post subject: Reply with quote

My bad, I was looking at the memory dump all the time. If I look in the disassembler I also got the issue.
_________________
DO NOT PM me if you want help on making/fixing/using a hack.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites