You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
inline void align(size_t a)
{
if ((pos % a) != 0) {
pos += a - (pos % a);
if (pos > lim) {
throw DeserializationException("invalid data size");
}
}
}
seems that align trying to find a size aligned offset , but use data + offset as address to load value. if data is not LCM of all data type, then this code may loading from misaligned address
Feature request
Feature description
Implementation considerations
The text was updated successfully, but these errors were encountered:
Bug report
Required Info:
ubuntu 22.04
build from source code
6.1.1
don't know
rclcpp
Steps to reproduce issue
we have a rclcpp test, hit by undefined behavior sanitizer
Expected behavior
Actual behavior
Additional information
while checking source code
and align here
source code
seems that align trying to find a size aligned offset , but use data + offset as address to load value. if data is not LCM of all data type, then this code may loading from misaligned address
Feature request
Feature description
Implementation considerations
The text was updated successfully, but these errors were encountered: