]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Merge r6084 (fix for #134727: valgrind exits with "Value too large
authorJulian Seward <jseward@acm.org>
Tue, 26 Dec 2006 02:54:46 +0000 (02:54 +0000)
committerJulian Seward <jseward@acm.org>
Tue, 26 Dec 2006 02:54:46 +0000 (02:54 +0000)
for defined data type")

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_2_BRANCH@6421

coregrind/m_libcfile.c

index f84a1c24c02a40508a393f4d1967e3c3f63feb23..4afe9cfd51b243e8cd3b6bfc67f7098fe6d335b4 100644 (file)
@@ -234,10 +234,14 @@ Int VG_(access) ( HChar* path, Bool irusr, Bool iwusr, Bool ixusr )
 /* returns: 0 = success, non-0 is failure */
 Int VG_(check_executable)(HChar* f)
 {
+#ifdef __NR_stat64
+   struct vki_stat64 st;
+   SysRes res = VG_(do_syscall2)(__NR_stat64, (UWord)f, (UWord)&st);
+#else
    struct vki_stat st;
-   SysRes res;
+   SysRes res = VG_(do_syscall2)(__NR_stat, (UWord)f, (UWord)&st);
+#endif
 
-   res = VG_(stat)(f, &st);
    if (res.isError) {
       return res.val;
    }