When passing an empty string to getCameraInfoTopic(), boost's split()
was returning an empty vector. However, the last element of this vector
was accessed w/o protection and even overwritten, causing arbitrary memory corruption.
The new implementation is more efficient, just searching for the last
slash and replacing everything thereafter with "camera_info".
When passing an empty string to getCameraInfoTopic(), boost's split() was returning an empty vector. However, the last element of this vector was accessed w/o protection and even overwritten, causing arbitrary memory corruption.
The new implementation is more efficient, just searching for the last slash and replacing everything thereafter with "camera_info".