Fix to avoid trace_size overflow
Fix to avoid buffer overflow on message parsing