summaryrefslogtreecommitdiff
path: root/src/shared/dlt_user_shared.c
diff options
context:
space:
mode:
authorChristian Muck <christian.muck@bmw.de>2012-03-21 09:49:13 +0100
committerChristian Muck <christian.muck@bmw.de>2012-03-21 15:37:22 +0100
commit24e50ebc858c296464c63ff7d322197291ecb020 (patch)
treec2589420792020cdf55f676cf011f5ab674446ad /src/shared/dlt_user_shared.c
parent1e40f5848d5776d7cac298b3fec25206d713ad72 (diff)
downloadDLT-daemon-24e50ebc858c296464c63ff7d322197291ecb020.tar.gz
Fixed bug with comparinson between signed and unsigned integer and protection for a buffer overflow.
Signed-off-by: Christian Muck <christian.muck@bmw.de>
Diffstat (limited to 'src/shared/dlt_user_shared.c')
-rwxr-xr-xsrc/shared/dlt_user_shared.c4
1 files changed, 2 insertions, 2 deletions
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)
{