MMIX LOGO

MMIX Bug

Table of Content

Content

MMIXware Version

mmix-20240731

Bug Reported

Initial: 2025-05-28

Author

Natalia Posting

Description

When parsing the b command in section 161 of the MMIX-SIM module, the parser may skip past the end of the string if there are no hex digits in the input. This leads to a memory fault.

Proposed Patch

@x
  case 'b':@+ for (k=0,p++; !isxdigit(*p); p++)
@y
  case 'b':@+ for (k=0,p++; !isxdigit(*p) && *p != '\0'; p++)
@z

Please help to keep this site up to date! If you want to point out important material or projects that are not listed here, if you find errors or want to suggest improvements, please send email to email