rmw_cyclonedds/rmw_cyclonedds_cpp
dennis-adlink 0e6fd30a8c Validation in deserializer (#36)
* Validation in Deserializer

Added validation in CDR deserialization: max buffer length is checked
when deserializing fields and strings are checked for null-terminator
(except for wstrings, which are serialized without null-terminator).

Signed-off-by: Dennis Potman <dennis.potman@adlinktech.com>

* Catch exceptions in serdata functions

In serdata functions rmw_print, rmw_to_sample and rmw_from_sample
catch exceptions so that correct return code is given when functions
are called from ddsi.

Signed-off-by: Dennis Potman <dennis.potman@adlinktech.com>

* Improve deserialisation validation

Refactored the deserialisation validation functions so that sequence
length is checked more properly and protection against overflows.
Renamed source files for exceptions so that it conforms to ros2 /
google c++ style guide.

Signed-off-by: Dennis Potman <dennis.potman@adlinktech.com>
2019-09-19 11:56:26 +02:00
..
include/rmw_cyclonedds_cpp Validation in deserializer (#36) 2019-09-19 11:56:26 +02:00
src Validation in deserializer (#36) 2019-09-19 11:56:26 +02:00
CMakeLists.txt Validation in deserializer (#36) 2019-09-19 11:56:26 +02:00
package.xml make cyclonedds vender package play nice with colcon (#34) 2019-09-18 19:49:39 +02:00
rmw_cyclonedds_cpp-extras.cmake replace FastCDR and serialise straight into a serdata to avoid an extra copy 2018-07-19 16:37:12 +02:00