It's max size is the same as in writer module.
Svace issue.
Change-Id: Icc5d34e67533ab675af35cd2398daf5b9be860d3
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
#define PROTOCOL_VERSION "4.2"
+enum {
+ MAX_RAW_MESSAGE_SIZE = 8*1024,
+};
#include "da_msg_ids.h"
if (IS_PROBE_MSG(log.type)) {
struct msg_data_t *msg_data = (struct msg_data_t *)&log;
+ if (msg_data->len > MAX_RAW_MESSAGE_SIZE) {
+ LOGE("Raw message is too big = %d\n",
+ msg_data->len);
+ continue;
+ }
+
if (write_to_buf(msg_data) != 0)
LOGE("write to buf fail\n");