mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-16 18:56:54 +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:
|
case type::EXT:
|
||||||
s << "EXT";
|
s << "EXT";
|
||||||
|
break;
|
||||||
|
|
||||||
case type::ARRAY:
|
case type::ARRAY:
|
||||||
s << "[";
|
s << "[";
|
||||||
|
Reference in New Issue
Block a user