mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-15 15:16:51 +02: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