Stack overflow in unit checking module
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)
Resolution: |
→ fixed
|
Status: |
accepted → closed
|
Milestone: |
1.9.4 → 1.9.4-1.9.x
|
Milestone: |
1.9.4-1.9.x → 1.9.4
|
Fixed in [b9b870d65d3a820745415ae3800de32bcc02aec4/OMCompiler].