|
From: <sv...@va...> - 2010-06-29 06:17:00
|
Author: bart
Date: 2010-06-29 07:16:52 +0100 (Tue, 29 Jun 2010)
New Revision: 11191
Log:
Fix for bug #242814 (Linux): made sure that Valgrind tools do not crash when the first argument of the mount() system call is NULL.
Modified:
trunk/coregrind/m_syswrap/syswrap-linux.c
Modified: trunk/coregrind/m_syswrap/syswrap-linux.c
===================================================================
--- trunk/coregrind/m_syswrap/syswrap-linux.c 2010-06-28 08:15:48 UTC (rev 11190)
+++ trunk/coregrind/m_syswrap/syswrap-linux.c 2010-06-29 06:16:52 UTC (rev 11191)
@@ -420,7 +420,8 @@
PRE_REG_READ5(long, "mount",
char *, source, char *, target, char *, type,
unsigned long, flags, void *, data);
- PRE_MEM_RASCIIZ( "mount(source)", ARG1);
+ if (ARG1)
+ PRE_MEM_RASCIIZ( "mount(source)", ARG1);
PRE_MEM_RASCIIZ( "mount(target)", ARG2);
PRE_MEM_RASCIIZ( "mount(type)", ARG3);
}
|