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
Hey guys, we noticed that the broker crashes because of an unhandled exception if IMC::BufferTooShort gets thown. The TCP buffers in TcpLink.hpp are 1024 bytes long, and messages with a rawdata field (vector of char in C++) can easily exceed this. That throws IMC::BufferTooShort, which is not caught, so the broker crashes.
Here's a minimal working example node implementation that triggers the crash:
Hey guys, we noticed that the broker crashes because of an unhandled exception if
IMC::BufferTooShort
gets thown. The TCP buffers inTcpLink.hpp
are 1024 bytes long, and messages with a rawdata field (vector of char in C++) can easily exceed this. That throwsIMC::BufferTooShort
, which is not caught, so the broker crashes.Here's a minimal working example node implementation that triggers the crash:
and I'll upload a zip with the whole MWE ros package, with CMakeLists, launch file, etc:
broker_bug.zip
The desired behaviour is I suppose to print an error message or something such and carry on.
The text was updated successfully, but these errors were encountered: