#3631 closed defect (fixed)
Stack overflow in unit checking module
Reported by: | lochel | Owned by: | lochel |
---|---|---|---|
Priority: | high | Milestone: | 1.9.4 |
Component: | Backend | Version: | |
Keywords: | Cc: |
Description
Empty unit strings can cause stack overflow in unit checking module. The following example can be used as test case:
loadString(" model foo Real x(final unit = \"\"); Real y(final unit = \"\"); equation x = time; x + y = sin(time); end foo; "); getErrorString(); setCommandLineOptions("--preOptModules+=unitChecking"); getErrorString(); simulate(foo); getErrorString();
Change History (4)
comment:1 Changed 9 years ago by lochel
- Status changed from new to accepted
comment:2 Changed 9 years ago by lochel
- Resolution set to fixed
- Status changed from accepted to closed
comment:3 Changed 8 years ago by sjoelund.se
- Milestone changed from 1.9.4 to 1.9.4-1.9.x
Milestone renamed
comment:4 Changed 8 years ago by sjoelund.se
- Milestone changed from 1.9.4-1.9.x to 1.9.4
Milestone renamed
Note: See
TracTickets for help on using
tickets.
Fixed in [b9b870d65d3a820745415ae3800de32bcc02aec4/OMCompiler].