]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix for bug #242814 (Linux): made sure that Valgrind tools do not crash when the...
authorBart Van Assche <bvanassche@acm.org>
Tue, 29 Jun 2010 06:16:52 +0000 (06:16 +0000)
committerBart Van Assche <bvanassche@acm.org>
Tue, 29 Jun 2010 06:16:52 +0000 (06:16 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11191

coregrind/m_syswrap/syswrap-linux.c

index 9c47dfb2b2a0034ec4e1a31777040a4d57a3c7bd..247402d80735bd297483d25cd553c309c5645070 100644 (file)
@@ -420,7 +420,8 @@ PRE(sys_mount)
    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);
 }