Opened 13 years ago

Closed 9 years ago

#1524 closed defect (fixed)

stringAppend segfaults on non-boxed string in MatchCaseInteractive2

Reported by: perost Owned by: sjoelund.se
Priority: high Milestone:
Component: Code Generation Version: trunk
Keywords: Cc: perost, sjoelund.se

Description

The meta/MatchCaseInteractive2 test case currently segfaults. This is because it calls stringAppend on line 150 in MatchCaseInteractive2_matchRecord.c, where the second argument _str is the string from the input argument to the matchRecord function. _str does not seem to be boxed though, which stringAppend assumes. This causes stringAppend to get a bad string length when doing MMC_STRLEN on it, which gives undefined behaviour (for me it tries to allocate a 3 GB result string).

Change History (3)

comment:1 Changed 10 years ago by perost

  • Component set to Code Generation
  • Milestone set to Bootstrapping
  • Owner changed from perost to sjoelund.se
  • Status changed from new to assigned
  • Version set to trunk

comment:2 Changed 10 years ago by sjoelund.se

  • Milestone Bootstrapping deleted

Unsetting milestone since bootstrapping is already finished.

comment:3 Changed 9 years ago by perost

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

This was fixed some time ago. I updated MatchCaseInteractive2 in r24143 and added it to the working tests.

Note: See TracTickets for help on using tickets.