Add input validation to TransitionDynamics conversion
Compare changes
Files
4@@ -11,9 +11,14 @@
@@ -61,13 +66,23 @@ mantle_api::Dimension ConvertToMantleApi(const NET_ASAM_OPENSCENARIO::v1_3::Dyna
\ No newline at end of file
Atm in case given value
of SpeedActionDynamics equals zero we end up with a segmentation fault (if shape is not equal to step
).
This MR introduces a basic input validation for conversion done by TransitionDynamics
(which is used by SpeedActionDynamics
) which throws an exception in case the given value
is out of valid range.
Pipeline: https://ci.eclipse.org/openpass/job/OpenScenarioEngine/job/MR-241/
Copyright © Eclipse Foundation, Inc. All Rights Reserved. Privacy Policy | Terms of Use | Copyright Agent