Ticket #175 (closed defect: fixed)
istruc crash
| Reported by: | pellelindblad@… | Owned by: | |
|---|---|---|---|
| Priority: | P1 | Milestone: | |
| Component: | Core | Version: | 0.8.0 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Hello,
If you put more data into a struct than the declaration implies possible, yasm crashes.
Example,
struc some_struct
.member_a: resd 0x01 ; NOTE, dword size
.member_b: resw 0x01 ; NOTE, word size
endstruc
section .rdata
some_struct_instance:
istruc some_struct
at some_struct.member_a, dd 0x00 ; dword, OK!
at some_struct.member_b, dd 0x00 ; dword, CRASH!
iend
The error message produced is,
INTERNAL ERROR at ..\..\..\modules\objfmts\coff\coff-objfmt.c, line 798: coff: s ection computed size did not match actual size
This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.
And then JIT kicks in ;) I did some local changes to the svn trunk a few weeks back to get the CodeView bug fixed, so line numbers might be off.
Regards, Pellsson
