You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are cases in certain cpp_message where a field uses a uint type to set a temporary variable to check against internal min/max values but this assignment can cause those values to overflow before the check occurs. Consider assigning these temporary fields to a more flexible type (long, double) prior to doing the check.
Version
4.3.0 (Current)
Expected Behavior
An incoming value that is larger/smaller than the MIN/MAX as defined in the ASN.1 message definition should be clamped to the MIN/MAX and raise an warning.
Actual Behavior
If an incoming value that is larger than the defined MAX and assigned to a uint type smaller than that max the value will overflow on assignment and not update or raise a warning.
Steps to Reproduce the Actual Behavior
Create an input test message with test data larger than the max value represented by a field that uses a temporary uint variable to check MAX/MIN adherence
Related Work
No response
The text was updated successfully, but these errors were encountered:
Summary
There are cases in certain cpp_message where a field uses a uint type to set a temporary variable to check against internal min/max values but this assignment can cause those values to overflow before the check occurs. Consider assigning these temporary fields to a more flexible type (long, double) prior to doing the check.
Version
4.3.0 (Current)
Expected Behavior
An incoming value that is larger/smaller than the MIN/MAX as defined in the ASN.1 message definition should be clamped to the MIN/MAX and raise an warning.
Actual Behavior
If an incoming value that is larger than the defined MAX and assigned to a uint type smaller than that max the value will overflow on assignment and not update or raise a warning.
Steps to Reproduce the Actual Behavior
Create an input test message with test data larger than the max value represented by a field that uses a temporary uint variable to check MAX/MIN adherence
Related Work
No response
The text was updated successfully, but these errors were encountered: