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
When compiled with -fsanitize=undefined on gcc 9.2.0, gcc's undefined behavior sanitizer warns with the message
mqtt_cpp/include/mqtt/endpoint.hpp:6002:12: runtime error: load of value 252, which is not a valid value for type 'bool' .
This seems to be caused by the session_present member of connack_info not being initialized. As a possible workaround, adding info.session_present = true; at line 6025 of endpoint.cpp fixes the problem, at least from the sanitizer's point of view.
The text was updated successfully, but these errors were encountered:
My guess is that the problem is happening when the struct is copied as a parameter into the function call.
So setting info.serssion_present = false; right after constructing the info object should fix the problem. I've confirmed as much on my end, but maybe you have a better idea,
When compiled with -fsanitize=undefined on gcc 9.2.0, gcc's undefined behavior sanitizer warns with the message
mqtt_cpp/include/mqtt/endpoint.hpp:6002:12: runtime error: load of value 252, which is not a valid value for type 'bool'
.This seems to be caused by the session_present member of connack_info not being initialized. As a possible workaround, adding
info.session_present = true;
at line 6025 of endpoint.cpp fixes the problem, at least from the sanitizer's point of view.The text was updated successfully, but these errors were encountered: