提交 9e1de55a 编写于 作者: D Daniel Gustafsson

Guard against message truncation

If the message is truncated in construction we need to treat it as
a failed construction since we otherwise might leave out important
parts.
上级 509460ee
......@@ -318,7 +318,7 @@ main(int argc, char **argv)
}
/* check for errors while building the message */
if ( msg == NULL )
if (msg == NULL || msgLen >= sizeof(msgBuffer))
{
return TRANS_ERRCODE_ERROR_READING_INPUT;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册