Skip to content

Ut_CFE_ES_WriteToSysLog() passed wrong parameter to UtList_Add() #341

@ynielson

Description

@ynielson

When the Ut function, Ut_CFE_ES_WriteToSysLog(), is called, it passed the wrong second parameter
in the function, UtList_Add().

void UtList_Add(UtListHead_t *ListHead, void *Data, uint32 DataSize, uint32 Tag)

The UtList_Add function takes the second parameter as (void *) type
and uses it to call the function, memcpy, as a source memory(void *).

But the Ut_CFE_ES_WriteToSysLog() passed the second parameter as (char **)
by passing "&SysLogEntryTextCopy".

This can cause memory corruption in some cases.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions