flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > pushd in win32w[x[p]].inc

Author
Thread Post new topic Reply to topic
asmfan



Joined: 11 Aug 2006
Posts: 392
Location: Russian
asmfan
macro doesn't align unicode strings declared in
Code:
invoke   somefunc, "somestring"    

on 2 byte natural alignment as it required by some APIs. RCE showed STATUS_DATATYPE_MISALIGNMENT on such 1-byte aligned strings.


WIN32W[X[P]].INC
Should be changed to
Code:
ALIGN 2
nop
    call ..continue
    du value,0
    ..continue:
    

_________________
Any offers?
Post 30 Dec 2008, 08:49
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17270
Location: In your JS exploiting you and your system
revolution
I think this is a good suggestion.

However this may be missed by Tomasz in this thread. Perhaps a mod can move and sticky it into Compiler Internals?
Post 30 Dec 2008, 09:00
View user's profile Send private message Visit poster's website Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr
asmfan,

times 1 - ($ and 1) nop
instead of
align 2
nop
,
may be?

_________________
"Don't belong. Never join. Think for yourself. Peace." – Victor Stone.
Post 30 Dec 2008, 09:55
View user's profile Send private message Reply with quote
asmfan



Joined: 11 Aug 2006
Posts: 392
Location: Russian
asmfan
baldr confirm, this is better.
Post 30 Dec 2008, 11:41
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
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


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.