rmw_cyclonedds/rmw_cyclonedds_cpp/include/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
..
deserialization_exception.hpp Validation in deserializer (#36) 2019-09-19 11:56:26 +02:00
exception.hpp Validation in deserializer (#36) 2019-09-19 11:56:26 +02:00
graphrhc.hpp Multi-domain support 2019-09-11 10:00:46 +02:00
macros.hpp update for Cyclone DDS changes and ROS2 changes 2019-04-29 10:08:59 +02:00
MessageTypeSupport.hpp replace FastCDR and serialise straight into a serdata to avoid an extra copy 2018-07-19 16:37:12 +02:00
MessageTypeSupport_impl.hpp update to match ROS2 Dashing interface 2019-05-12 13:52:26 +02:00
serdata.hpp Use NO_KEY GUID variant if Cyclone DDS supports it 2019-08-22 10:14:49 +02:00
serdes.hpp Validation in deserializer (#36) 2019-09-19 11:56:26 +02:00
ServiceTypeSupport.hpp replace FastCDR and serialise straight into a serdata to avoid an extra copy 2018-07-19 16:37:12 +02:00
ServiceTypeSupport_impl.hpp update to match ROS2 Dashing interface 2019-05-12 13:52:26 +02:00
TypeSupport.hpp Add support for printing messages to DDSI trace 2019-09-11 10:00:46 +02:00
TypeSupport_impl.hpp Validation in deserializer (#36) 2019-09-19 11:56:26 +02:00
u16string.hpp Add wstring support 2019-08-19 11:13:13 +02:00
visibility_control.h initial commit 2018-07-09 13:22:25 +02:00