From 24e50ebc858c296464c63ff7d322197291ecb020 Mon Sep 17 00:00:00 2001 From: Christian Muck Date: Wed, 21 Mar 2012 09:49:13 +0100 Subject: Fixed bug with comparinson between signed and unsigned integer and protection for a buffer overflow. Signed-off-by: Christian Muck --- src/shared/dlt_user_shared.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/shared/dlt_user_shared.c') diff --git a/src/shared/dlt_user_shared.c b/src/shared/dlt_user_shared.c index 5afc828..e743dfc 100755 --- a/src/shared/dlt_user_shared.c +++ b/src/shared/dlt_user_shared.c @@ -125,7 +125,7 @@ int dlt_user_check_userheader(DltUserHeader *userheader) DltReturnValue dlt_user_log_out2(int handle, void *ptr1, size_t len1, void* ptr2, size_t len2) { struct iovec iov[2]; - int bytes_written; + uint32_t bytes_written; if (handle<=0) { @@ -151,7 +151,7 @@ DltReturnValue dlt_user_log_out2(int handle, void *ptr1, size_t len1, void* ptr2 DltReturnValue dlt_user_log_out3(int handle, void *ptr1, size_t len1, void* ptr2, size_t len2, void *ptr3, size_t len3) { struct iovec iov[3]; - int bytes_written; + uint32_t bytes_written; if (handle<=0) { -- cgit v1.2.1