View Issue Details

IDProjectCategoryView StatusLast Update
0000353LDMud 3.3Runtimepublic2005-05-15 15:02
ReporterGnomi Assigned Tolars 
Status closedResolutionfixed 
Platformi686OSDebian GNU/LinuxOS Version3.0
Product Version3.3 
Fixed in Version3.3 
Summary0000353: Foreach with references crashes the driver

the following crashes the driver:

    mapping m = ([ 1: 1]);
    foreach(mixed k, mixed e: &m) k;

The reason is that in interpret.c line 15125 the allocated memory block for the protector structure is too small. (sizeof *lvalue is given, but it should be sizeof *prot.) Thus subsequent memory management structures will be damaged.

TagsNo tags attached.



2005-01-29 22:53

reporter   ~0000316

Yep, it's a really stupid typo: I wrote 'sizeof *lvalue' where it should have been 'sizeof *prot'. It'll be fixed in 3.3.664.

Issue History

Date Modified Username Field Change
2005-01-27 20:21 Gnomi New Issue
2005-01-29 22:53 lars Status new => resolved
2005-01-29 22:53 lars Fixed in Version => 3.3
2005-01-29 22:53 lars Resolution open => fixed
2005-01-29 22:53 lars Assigned To => lars
2005-01-29 22:53 lars Note Added: 0000316
2005-05-15 15:02 lars Status resolved => closed