summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorjiripopek <Jiri.Popek@bmw.de>2019-04-04 14:13:34 +0200
committerssugiura <39760799+ssugiura@users.noreply.github.com>2019-04-11 19:55:38 +0900
commit9e5723b75937892e12e68bb2f18f5751ce3d458d (patch)
tree30ec50fc70f83a145e43c4e635023905c9b21e54 /include
parenteb3dcd26c80c4ac6e431b09b50b0861b9753ceea (diff)
downloadDLT-daemon-9e5723b75937892e12e68bb2f18f5751ce3d458d.tar.gz
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).
Diffstat (limited to 'include')
-rw-r--r--include/dlt/dlt_types.h2
1 files changed, 1 insertions, 1 deletions
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;