During the conversion from and to udp_msgs, output containers are resized incorrectly.
They are currently resized to the size of the input container in bytes not the number of the input container's elements number.
This results in losing data during conversion or the creation of oversized containers.
PR description
This pull request fixes the udp_msgs conversion. The output container is resized to be compliant with the input container in size.
PR modifications
changed resizing of the output containers in the udp_msgs.hpp
PR motivation
During the conversion from and to
udp_msgs
, output containers are resized incorrectly. They are currently resized to the size of the input container in bytes not the number of the input container's elements number. This results in losing data during conversion or the creation of oversized containers.PR description
This pull request fixes the udp_msgs conversion. The output container is resized to be compliant with the input container in size.
PR modifications
udp_msgs.hpp