Skip to content

Commit

Permalink
[BUGFIX] Skip LogFunctionArgs if the function has no arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
hasherezade committed Aug 24, 2024
1 parent dddd88e commit ff382a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions TinyTracer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,8 @@ VOID _LogFunctionArgs(const ADDRINT Address, const CHAR *name, uint32_t argCount

VOID LogFunctionArgs(const ADDRINT Address, CHAR *name, uint32_t argCount, VOID *arg1, VOID *arg2, VOID *arg3, VOID *arg4, VOID *arg5, VOID *arg6, VOID *arg7, VOID *arg8, VOID *arg9, VOID *arg10, VOID* arg11)
{
if (argCount == 0) return;

PinLocker locker;
_LogFunctionArgs(Address, name, argCount, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11);
}
Expand Down

0 comments on commit ff382a9

Please sign in to comment.