From 18126ed325b85b815c9d14845fd1e1ba48b6390f Mon Sep 17 00:00:00 2001 From: Eugene Syromyatnikov Date: Thu, 27 Sep 2018 07:39:07 +0200 Subject: syscall: reset auxstr Otherwise RVAL_STR may print auxstr remained from a previous syscall. * syscall.c (syscall_entering_trace); Set tcp->auxstr to NULL. --- src/syscall.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/syscall.c b/src/syscall.c index 92aaee092..d799e4c7b 100644 --- a/src/syscall.c +++ b/src/syscall.c @@ -646,6 +646,7 @@ syscall_entering_trace(struct tcb *tcp, unsigned int *sig) } tcp->flags &= ~TCB_FILTERED; + tcp->auxstr = NULL; if (inject(tcp)) tamper_with_syscall_entering(tcp, sig); -- cgit v1.2.1