Opened 14 years ago

Closed 10 years ago

#1524 closed defect (fixed)

stringAppend segfaults on non-boxed string in MatchCaseInteractive2

Reported by: Per Östlund Owned by: Martin Sjölund
Priority: high Milestone:
Component: Code Generation Version: trunk
Keywords: Cc: Per Östlund, Martin Sjölund

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 by Per Östlund, 11 years ago

Component: Code Generation
Milestone: Bootstrapping
Owner: changed from Per Östlund to Martin Sjölund
Status: newassigned
Version: trunk

comment:2 by Martin Sjölund, 10 years ago

Milestone: Bootstrapping

Unsetting milestone since bootstrapping is already finished.

comment:3 by Per Östlund, 10 years ago

Resolution: fixed
Status: assignedclosed

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.