Debugging a gnarly problem on Windows

Col_Klonk

Member
Joined
Aug 29, 2015
Messages
470
Reaction score
0
Points
16
Location
This here small Dot
Essentially why I steer clear of 'high level' languages.. you have to eventually do the Win/Kernel API work anyway, so one might as well start from the beginning. :)
 

ADSWNJ

Scientist
Addon Developer
Joined
Aug 5, 2011
Messages
1,667
Reaction score
3
Points
38
What's interesting is that the Windows kernel on the async return just stomps on memory without any respect for the RO flags the author put on the page. Those flags are obviously just for the little guy, not the mighty kernel!
 

Urwumpe

Not funny anymore
Addon Developer
Donator
Joined
Feb 6, 2008
Messages
37,615
Reaction score
2,335
Points
203
Location
Wolfsburg
Preferred Pronouns
Sire
What's interesting is that the Windows kernel on the async return just stomps on memory without any respect for the RO flags the author put on the page. Those flags are obviously just for the little guy, not the mighty kernel!

Isn't it good to be Kernel?
 

Col_Klonk

Member
Joined
Aug 29, 2015
Messages
470
Reaction score
0
Points
16
Location
This here small Dot
Win and Kernel APIs do a lot of stack fixups before they return, not like you usual return instruction, and it does get really messy.
The impression I get from that article was that the development were not exactly aware of what the Kernel and Win APIs are doing, and started playing at that level without keeping tabs..
It took him 5 days to discover this... heh heh.. he has a few more years to go still
:)
 
Top