space-concordia-robotics / robotics-prototype

Teleoperated Mars rover with autonomous capabilities intended for robotics competitions.
https://spaceconcordia.github.io/robotics.html
25 stars 18 forks source link

[#0] Copy contents to avoid bad pointer #536

Closed MartensCedric closed 3 years ago

MartensCedric commented 3 years ago

Assignee Section

Description

The message object only has a reference to the contents but the contents may get cleared once the object was pushed to the message queue. To avoid problems, the contents are copied to a new address.