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 , 11 years ago
Component: | → Code Generation |
---|---|
Milestone: | → Bootstrapping |
Owner: | changed from | to
Status: | new → assigned |
Version: | → trunk |
comment:2 by , 10 years ago
Milestone: | Bootstrapping |
---|
comment:3 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
This was fixed some time ago. I updated MatchCaseInteractive2 in r24143 and added it to the working tests.
Unsetting milestone since bootstrapping is already finished.