From b9a80697bc5e4ea482d9fcce307e049058585fe7 Mon Sep 17 00:00:00 2001 From: Dror Levin Date: Thu, 1 Jan 2015 15:15:47 +0200 Subject: [PATCH] Add missing break to prevent segfault When printing objects with extension, falling through to type ARRAY may cause segmentation fault. --- include/msgpack/object.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/msgpack/object.hpp b/include/msgpack/object.hpp index 6421dba8..9f85dc07 100644 --- a/include/msgpack/object.hpp +++ b/include/msgpack/object.hpp @@ -672,6 +672,7 @@ inline std::ostream& operator<< (std::ostream& s, const object& o) case type::EXT: s << "EXT"; + break; case type::ARRAY: s << "[";