dMZX Forums: Interpolation of long string into counter name in an expression causes a crash -> Archived MegaZeux Bugs -> Tracker

Jump to content

Report ID 620 Title Interpolation of long string into counter name in an expression causes a crash
Product Archived MegaZeux Bugs Status Fixed (Severity 5 - Critical)
Version 2.84c Fixed in GIT
Introduced In Version ----Operating System Windows x64

Page 1 of 1
  • Cannot start a new Issue
  • Closed Issue This issue is locked

Report ID #620: Interpolation of long string into counter name in an expression causes a crash

#1 User is offline  
Lachesis 

  • the pinnacle of human emotion
  • Group: DigiStaff
  • Posts: 3,943
  • Joined: 17-July 04
  • Gender:Female
  • Location:Sealand

Posted 05 October 2015 - 07:26 PM

set "COMMANDS" to 32767
set "$t.0" to 0
loop start
inc "$t" by "$t"
loop for 15
set "('&$t&')" to ""


(gdb) bt full
#0 0x618cbdd3 in find_counter (mzx_world=0x0, name=0x28e620 "",
next=0x28e4e8) at src/counter.c:3199
current = 0x0
#1 0x618cd0c2 in get_counter (mzx_world=0x0, name=0x28e620 "", id=0)
at src/counter.c:3791
fdest = 0x0
cdest = 0x77672f6d
next = -2
#2 0x618cffde in parse_argument (mzx_world=0x0, _argument=0x0, type=0x0,
id=0) at src/expr.c:396
t_char = 0 '\000'
temp = "&$t&\000ªlw\230A4\004H\016\000\000î_î_3\000\000\000d¿4\004\000\0
00]\000àI4\004,å]\000\263å]\000\000\000\000\000\000\000\000\000\177\000\000\000D
æ(\000<3gw3\000\000\000y3lwDæ(\000\nAiwµ3gwLoàe\200\001\000\000\000\000\000\000\
000\000]\000P\001]\000°å]\000\200\001\000\000P\001]\000à\017\000\000\200\001]\00
0àå(\000E\001\000\000\004@\000\000P\001]\000\177\000\000\000,å]\000P\001]\000\17
7\000\000\000\000\002\b\000\063\000\000\000àå(\000 \000A\004\030\000ä\004\200A4\
004\000\000\000\000\002\000\004\006\bä]\000\004\000\000\000y3lw"...
temp2 = '\000' <repeats 255 times>
count = 0
argument = 0x0
first_char = 0
#3 0x00000000 in ?? ()


Found in MZX 2.84c, but it happens in GIT too.
"Let's just say I'm a GOOD hacker, AND virus maker. I'm sure you wouldn't like to pay for another PC would you?"

xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository


Page 1 of 1  
  • Cannot start a new Issue
  • Closed Issue This issue is locked

Replies (1 - 3)

#2 User is offline  
Lachesis 

  • the pinnacle of human emotion
  • Group: DigiStaff
  • Posts: 3,943
  • Joined: 17-July 04
  • Gender:Female
  • Location:Sealand

Posted 27 May 2017 - 08:02 AM

This appears to be fixed with GIT 1edc4d6 and GIT 567c9c3, which revamp of the expression parser. The bug does not exist in debytecode.
"Let's just say I'm a GOOD hacker, AND virus maker. I'm sure you wouldn't like to pay for another PC would you?"

xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository

#3 User is offline  
Lachesis 

  • the pinnacle of human emotion
  • Group: DigiStaff
  • Posts: 3,943
  • Joined: 17-July 04
  • Gender:Female
  • Location:Sealand

Posted 12 June 2017 - 05:04 PM

Updating status to: Fixed
Updating version to: 2.84c
Issue fixed in: GIT
"Let's just say I'm a GOOD hacker, AND virus maker. I'm sure you wouldn't like to pay for another PC would you?"

xx̊y (OST) - HELLQUEST (OST) - Zeux I: Labyrinth of Zeux (OST) (DOS OST)
w/ Lancer-X and/or asgromo: Pandora's Gate - Thanatos Insignia - no True(n) - For Elise OST
MegaZeux: Online Help File - Keycode Guide - Joystick Guide - Official GIT Repository

#4 User is offline  
Terryn 

  • ******
  • Group: DigiStaff
  • Posts: 2,966
  • Joined: 12-October 00
  • Gender:Male

Posted 29 June 2017 - 07:11 AM

Moving to: Archived MegaZeux Bugs


Page 1 of 1
  • Cannot start a new Issue
  • Closed Issue This issue is locked

0 User(s) are reading this issue
0 Guests and 0 Anonymous Users


Powered by IP.Tracker 1.3.2 © 2025  IPS, Inc.