yujinrobot / yujin_ocs

Yujin Robot's open-source control libraries
http://wiki.ros.org/yujin_ocs
235 stars 178 forks source link

Changed variable type to size_t type #147

Open karina-ranadive opened 12 months ago

karina-ranadive commented 12 months ago

In cmd_vel_mux_nodelet.cpp, cmd_vel_subs.size() is of type size_t and i is of type unsigned int, which are inconsistent types that present a security vulnerability to my team. In order to address this security vulnerability, I changed i in the for loop to be of type size_t to enable consistent variable types. In cmd_vel_subscribers.cpp, I made a similar change due to the same security vulnerability.