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
More specifically, the nullptr deref happens in MQTTAsync_subscribeMany() because response->subscribeOptionsList is NULL here.
I think this is caused by response_options copy constructor not copying subOpts_.
This means that when response_options_builder::finalize() is called, a response_options instance with subOpts_.data()==nullptr is returned.
My current fix for this looks like this. Although I don't know if there is more to this than that:
I encountered a nullptr deref when subscribing to multiple topics with custom options.
See example below:
More specifically, the nullptr deref happens in
MQTTAsync_subscribeMany()
becauseresponse->subscribeOptionsList
is NULL here.I think this is caused by
response_options
copy constructor not copyingsubOpts_
.This means that when
response_options_builder::finalize()
is called, aresponse_options
instance withsubOpts_.data()==nullptr
is returned.My current fix for this looks like this. Although I don't know if there is more to this than that:
System info
OS: win11
Compiler: mingw64 12.2.0
The text was updated successfully, but these errors were encountered: