TcUnit
TcUnit copied to clipboard
AddAssertResult not checking limits of AssertResults array
Describe the bug When increasing TotalAsserts in method AddAssertResult the array limits of AssertResults are not being checked, causing PLC crash due to invalid array index.
Expected behavior Prevent crash by limit checks and sending error through ADSLOGSTR. Remark: Prevent overflow of event logger (error should only be raised once)!!!
Screenshots

Software versions v1.2.0.0
has been mentioned earlier in #153
Pull request welcome.
Solved in #193 & in commit 4a48bdd