From 66a3db1740979821ff019bf1f493a9557e2c8445 Mon Sep 17 00:00:00 2001 From: Peter Thorson Date: Thu, 25 Apr 2013 08:51:57 -0500 Subject: [PATCH] note that hybi13 processor needs incoming message buffer validation --- websocketpp/processors/hybi13.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/websocketpp/processors/hybi13.hpp b/websocketpp/processors/hybi13.hpp index 3009b20149..af8baa9dee 100644 --- a/websocketpp/processors/hybi13.hpp +++ b/websocketpp/processors/hybi13.hpp @@ -386,7 +386,9 @@ public: // check if this frame is the start of a new message and set up // the appropriate message metadata. frame::opcode::value op = frame::get_opcode(m_basic_header); - + + // TODO: get_message failure conditions + if (frame::opcode::is_control(op)) { m_control_msg = msg_metadata( m_msg_manager->get_message(op,m_bytes_needed),