Skip to content

Unterminated variadic call in UT tools, CodeQL warning #781

@skliper

Description

@skliper

Is your feature request related to a problem? Please describe.
CodeQL warning on:

#define UT_DEFAULT_IMPL_RC(FuncName, Rc) UT_DefaultStubImpl(#FuncName, UT_KEY(FuncName), Rc)

int32 UT_DefaultStubImpl(const char *FunctionName, UT_EntryKey_t FuncKey, int32 DefaultRc, ...)
{
int32 Retcode;
va_list va;
va_start(va, DefaultRc);
Retcode = UT_DefaultStubImplWithArgs(FunctionName, FuncKey, DefaultRc, va);
va_end(va);
return Retcode;
}

Describe the solution you'd like
Terminate list with NULL in macro

Describe alternatives you've considered
None

Additional context
CodeQL warning

Requester Info
Jacob Hageman - NASA/GSFC

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsecurityunit-testTickets related to the OSAL unit testing (functional and/or coverage)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions