Author: skovmanden
Date: 2006-11-02 12:41:20 +0100 (Thu, 02 Nov 2006)
New Revision: 1578
Modified:
freesci/branches/glutton/ChangeLog
freesci/branches/glutton/src/include/script.h
freesci/branches/glutton/src/tools/scidisasm.c
Log:
This fixes a long-standing bug in scidisasm which affected object
address resolution, causing garbled output.
Lars
Modified: freesci/branches/glutton/ChangeLog
===================================================================
--- freesci/branches/glutton/ChangeLog 2006-11-01 19:24:50 UTC (rev 1577)
+++ freesci/branches/glutton/ChangeLog 2006-11-02 11:41:20 UTC (rev 1578)
@@ -1,3 +1,8 @@
+2006-11-02 Lars Skovlund <[EMAIL PROTECTED]>
+
+ * src/tools/scidisasm.c: Fix long-standing name clobbering bug
+ caused by LRU resource management.
+
2006-11-01 Lars Skovlund <[EMAIL PROTECTED]>
* src/sfx/iterator.c,
Modified: freesci/branches/glutton/src/include/script.h
===================================================================
--- freesci/branches/glutton/src/include/script.h 2006-11-01 19:24:50 UTC
(rev 1577)
+++ freesci/branches/glutton/src/include/script.h 2006-11-02 11:41:20 UTC
(rev 1578)
@@ -131,7 +131,7 @@
op_push1,
op_push2,
op_pushSelf,
- op_lag,
+ op_lag = 0x40,
op_lal,
op_lat,
op_lap,
Modified: freesci/branches/glutton/src/tools/scidisasm.c
===================================================================
--- freesci/branches/glutton/src/tools/scidisasm.c 2006-11-01 19:24:50 UTC
(rev 1577)
+++ freesci/branches/glutton/src/tools/scidisasm.c 2006-11-02 11:41:20 UTC
(rev 1578)
@@ -444,7 +444,7 @@
name=namepos? ((char *)data + namepos) : "<unknown>";
if (pass_no == 1)
- script_add_area (s, seeker, seeker+objsize-1, area_object,
name);
+ script_add_area (s, seeker, seeker+objsize-1, area_object,
strdup(name));
if (pass_no == 2) {
sciprintf(".object\n");
_______________________________________________
FreeSCI-develop mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freesci-develop