flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > [bug?] Unsized structure offsets load without error.

Author
Thread Post new topic Reply to topic
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17450
Location: In your JS exploiting you and your system
revolution
See here for some history:
Code:
include 'macro\struct.inc'
use32

struct TestStruct1
   Key1  rq 1           ;<-- a quad word for testing
ends

struct TestStruct2
   Key2  TestStruct1
ends

        mov     ebx,[ebx+TestStruct2.Key2]      ; shouldn't work?    
We loaded a dword from a quad word pointer? I'm not sure if this is a bug, but it feels a bit bad so I report it here to see if this is a problem that needs fixing.
Post 04 May 2009, 03:37
View user's profile Send private message Visit poster's website Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 2936
Location: vpcmipstrm
bitRAKE
Key2 is TestStruct1, so it doesn't appear to be a bug, imho. Has a struct ever been an alias for the first member?
Post 04 May 2009, 08:43
View user's profile Send private message Visit poster's website 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. Also on YouTube, Twitter.

Website powered by rwasa.