#175 (istruc crash) – The Yasm Modular Assembler Project
Modify

Ticket #175 (closed defect: fixed)

Opened 15 months ago

Last modified 15 months ago

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

Attachments

Change History

comment:1 Changed 15 months ago by peter

  • Status changed from new to closed
  • Resolution set to fixed

(In [2203]) Fix #175: Only sanity check final section size if no user errors occurred.

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.