From 9e5723b75937892e12e68bb2f18f5751ce3d458d Mon Sep 17 00:00:00 2001 From: jiripopek Date: Thu, 4 Apr 2019 14:13:34 +0200 Subject: Fixed memory leak when receiving network traces of 0xFFFF length 0xFFFF was used as a magic number in the length field of a network message in order to trigger a resend. DLT library will now use the nw_trace_type field and a custom type to do this, thus assuring no external client of the library can reach this value(DLT_NW_TRACE_RESEND). --- include/dlt/dlt_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/dlt/dlt_types.h b/include/dlt/dlt_types.h index 6a46c08..c47ba50 100644 --- a/include/dlt/dlt_types.h +++ b/include/dlt/dlt_types.h @@ -158,7 +158,7 @@ typedef enum DLT_NW_TRACE_USER_DEFINED4 = 0x0C, DLT_NW_TRACE_USER_DEFINED5 = 0x0D, DLT_NW_TRACE_USER_DEFINED6 = 0x0E, - DLT_NW_TRACE_USER_DEFINED7 = 0x0F, + DLT_NW_TRACE_RESEND = 0x0F, /**< Mark a resend */ DLT_NW_TRACE_MAX /**< maximum value, used for range check */ } DltNetworkTraceType; -- cgit v1.2.1