usdot-fhwa-stol / cdasim

CDASim is an open-source simulation system supporting the development and testing of Cooperative Driving Automation applications.
37 stars 13 forks source link

Fix/amf parser error #132

Closed kjrush closed 1 year ago

kjrush commented 1 year ago

PR Details

Description

Stop the parsing after reading the final field. This will ignore any potential junk data after the end of the payload field.

How Has This Been Tested?

New unit test added to cover this case.

Types of changes

Checklist:

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

100.0% 100.0% Coverage
0.0% 0.0% Duplication