Fix uninitialized data access in audit_log_user_command()
PATCH 1/1 Fix uninitialized data access in audit_log_user_command()
Hello,audit_log_user_command() uses uninitialized commname if getcwd() fails. The attached patch fixes this.
Mirek
lib/audit_logging.c +1 -1
@@ -632,7 +632,7 @@// We borrow the commname buffer if (getcwd (commname,PATH_MAX ) ==NULL ) -strcpy (cwdname,"?" ); +strcpy (commname,"?" );strcpy (cwdname, commname); p = commname; len =strlen (commname);
Steve Grubb
AppliedQuoted 2 lines · On Sunday 23 March 2008 22:32:39 Miloslav Trmač wrote:
audit_log_user_command()uses uninitialized commname ifgetcwd()fails. The attached patch fixes this.
Applied. Thanks!
-Steve