Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#3631 closed defect (fixed)

Stack overflow in unit checking module

Reported by: Lennart Ochel Owned by: Lennart Ochel
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 by Lennart Ochel, 9 years ago

Status: newaccepted

comment:2 by Lennart Ochel, 9 years ago

Resolution: fixed
Status: acceptedclosed

comment:3 by Martin Sjölund, 9 years ago

Milestone: 1.9.41.9.4-1.9.x

Milestone renamed

comment:4 by Martin Sjölund, 9 years ago

Milestone: 1.9.4-1.9.x1.9.4

Milestone renamed

Note: See TracTickets for help on using tickets.