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
`Message::gets` now returns None on invalid UTF-8 instead of panicking.
The doc for zmq_msg_gets says that "both the property argument and the
value shall be NULL-terminated UTF8-strings", but in practice libzmq
neither confirms nor enforces this. A buggy or malicious peer can send
arbitrary binary garbage, which will be faithfully returned verbatim
from zmq_msg_gets. Converting the Result from str::from_utf8 to an
Option via .ok() instead of unwrapping saves us from a crash without a
client-breaking type change.
0 commit comments