robotology / cer

Contains SW specific to the R1 robots
GNU General Public License v2.0
10 stars 13 forks source link

Marker lifetime is publishing not initialized memory #78

Open traversaro opened 7 years ago

traversaro commented 7 years ago

In https://github.com/robotology/cer/blob/c14c93fada5fdfd9fd5d9fb0ec2f148e1813631d/modules/teleop/main.cpp#L264 , the lifetime attribute of the visualization_msgs_Marker marker object is not initialized, and then that value is sent over the network. This can be a problem especially if lifetime assumes a negative value.