mirror of
https://github.com/msgpack/msgpack-c.git
synced 2026-01-11 08:34:21 +01:00
Add missing break to prevent segfault
When printing objects with extension, falling through to type ARRAY may cause segmentation fault.
This commit is contained in:
@@ -672,6 +672,7 @@ inline std::ostream& operator<< (std::ostream& s, const object& o)
|
||||
|
||||
case type::EXT:
|
||||
s << "EXT";
|
||||
break;
|
||||
|
||||
case type::ARRAY:
|
||||
s << "[";
|
||||
|
||||
Reference in New Issue
Block a user