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 


$c vsnprintf etc. linked to garbage?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
myocytebd2
Cheater
Reputation: 0

Joined: 23 Apr 2015
Posts: 33

PostPosted: Mon Mar 28, 2022 12:05 pm    Post subject: $c vsnprintf etc. linked to garbage? Reply with quote

(CE7.4 ia32)
vsnprintf is an inlined wrapper, and then call to ntdll._vsnprintf, which appears to be 64-bit 7FFEFE7DDA90.
And relocation is filled with lower bits garbage.
Code:
_vsnprintf - FF 25 D802F211        - jmp dword ptr [IAT._vsnprintf]  ; FE7DDA90

(And it is not the only one)

So it seems that all the headers are broken and usable.
stdlib.h/math.h directly breaks linking and make AA unable to toggle.
stdio.h/string.h has wrong wrappers and dangling linking.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Mon Mar 28, 2022 2:53 pm    Post subject: Reply with quote

I only recommend using the include files for structure definitions, not function declarations. For function declaration I recommend defining them yourself to prevent issues that come from header files that assume it's a normal mingw C environment, which this is not (I mean, most of the include files outright don't even work on 64-bit )


anyhow, in this case you can bypass the issue by defining __NO_ISOCEXT before as vsnprintf does exist in ntdll , so the inline code isn't needed
Code:

#define __NO_ISOCEXT
#include <stdio.h>

_________________
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
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