Quantcast

Valgrind: r16314 - in /trunk: NEWS coregrind/m_libcbase.c coregrind/m_syswrap/syswrap-linux.c include/pub_tool_libcbase.h memcheck/tests/x86-linux/scalar.c memcheck/tests/x86-linux/scalar.stderr.exp

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Valgrind: r16314 - in /trunk: NEWS coregrind/m_libcbase.c coregrind/m_syswrap/syswrap-linux.c include/pub_tool_libcbase.h memcheck/tests/x86-linux/scalar.c memcheck/tests/x86-linux/scalar.stderr.exp

svn-2
Author: iraisr
Date: Wed Apr 26 20:27:14 2017
New Revision: 16314

Log:
Syscall wrapper for prctl(PR_SET_NAME) must not check more than 16 bytes.
Fixes BZ#379039.

Modified:
    trunk/NEWS
    trunk/coregrind/m_libcbase.c
    trunk/coregrind/m_syswrap/syswrap-linux.c
    trunk/include/pub_tool_libcbase.h
    trunk/memcheck/tests/x86-linux/scalar.c
    trunk/memcheck/tests/x86-linux/scalar.stderr.exp

Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS (original)
+++ trunk/NEWS Wed Apr 26 20:27:14 2017
@@ -156,6 +156,7 @@
 377930  fcntl syscall wrapper is missing flock structure check
 378535  Valgrind reports INTERNAL ERROR in execve syscall wrapper
 378673  Update libiberty demangler
+379039  syscall wrapper for prctl(PR_SET_NAME) must not check more than 16 bytes
 379094  Valgrind reports INTERNAL ERROR in rt_sigsuspend syscall wrapper
 
 Release 3.12.0 (20 October 2016)

Modified: trunk/coregrind/m_libcbase.c
==============================================================================
--- trunk/coregrind/m_libcbase.c (original)
+++ trunk/coregrind/m_libcbase.c Wed Apr 26 20:27:14 2017
@@ -266,6 +266,14 @@
    return i;
 }
 
+SizeT VG_(strnlen)(const HChar* str, SizeT n)
+{
+   SizeT i = 0;
+   while (i < n && str[i] != 0)
+      i++;
+   return i;
+}
+
 HChar* VG_(strcat) ( HChar* dest, const HChar* src )
 {
    HChar* dest_orig = dest;
@@ -319,6 +327,29 @@
    }
 }
 
+/* Copies up to n-1 bytes from src to dst. Then nul-terminate dst if n > 0.
+   Returns strlen(src). Does not zero-fill the remainder of dst. */
+SizeT VG_(strlcpy)(HChar *dst, const HChar *src, SizeT n)
+{
+   const HChar *src_orig = src;
+   SizeT m = 0;
+
+   while (m < n - 1 && *src != '\0') {
+      m++;
+      *dst++ = *src++;
+   }
+
+   /* Nul-terminate dst. */ \
+   if (n > 0)
+      *dst = 0;
+
+   /* Finish counting strlen(src). */ \
+   while (*src != '\0')
+      src++;
+
+   return src - src_orig;
+}
+
 Int VG_(strcmp) ( const HChar* s1, const HChar* s2 )
 {
    while (True) {

Modified: trunk/coregrind/m_syswrap/syswrap-linux.c
==============================================================================
--- trunk/coregrind/m_syswrap/syswrap-linux.c (original)
+++ trunk/coregrind/m_syswrap/syswrap-linux.c Wed Apr 26 20:27:14 2017
@@ -1452,7 +1452,26 @@
       break;
    case VKI_PR_SET_NAME:
       PRE_REG_READ2(int, "prctl", int, option, char *, name);
-      PRE_MEM_RASCIIZ("prctl(set-name)", ARG2);
+      /* The name can be up to TASK_COMM_LEN(16) bytes long, including
+         the terminating null byte. So do not check more than 16 bytes. */
+      if (ML_(safe_to_deref)((const HChar *) ARG2, VKI_TASK_COMM_LEN)) {
+         SizeT len = VG_(strnlen)((const HChar *) ARG2, VKI_TASK_COMM_LEN);
+         if (len < VKI_TASK_COMM_LEN) {
+            PRE_MEM_RASCIIZ("prctl(set-name)", ARG2);
+         } else {
+            PRE_MEM_READ("prctl(set-name)", ARG2, VKI_TASK_COMM_LEN);
+         }
+      } else {
+         /* Do it the slow way, one byte at a time, while checking for
+            terminating '\0'. */
+         const HChar *name = (const HChar *) ARG2;
+         for (UInt i = 0; i < VKI_TASK_COMM_LEN; i++) {
+            PRE_MEM_READ("prctl(set-name)", (Addr) &name[i], 1);
+            if (!ML_(safe_to_deref)(&name[i], 1) || name[i] == '\0') {
+               break;
+            }
+         }
+      }
       break;
    case VKI_PR_GET_NAME:
       PRE_REG_READ2(int, "prctl", int, option, char *, name);
@@ -1516,12 +1535,12 @@
          const HChar* new_name = (const HChar*) ARG2;
          if (new_name) {    // Paranoia
             ThreadState* tst = VG_(get_ThreadState)(tid);
-            SizeT new_len = VG_(strlen)(new_name);
+            SizeT new_len = VG_(strnlen)(new_name, VKI_TASK_COMM_LEN);
 
             /* Don't bother reusing the memory. This is a rare event. */
             tst->thread_name =
               VG_(realloc)("syswrap.prctl", tst->thread_name, new_len + 1);
-            VG_(strcpy)(tst->thread_name, new_name);
+            VG_(strlcpy)(tst->thread_name, new_name, new_len + 1);
          }
       }
       break;

Modified: trunk/include/pub_tool_libcbase.h
==============================================================================
--- trunk/include/pub_tool_libcbase.h (original)
+++ trunk/include/pub_tool_libcbase.h Wed Apr 26 20:27:14 2017
@@ -80,11 +80,13 @@
                              && VG_(strncmp)((s1),(s2),(n))==0) ? True : False )
 
 extern SizeT  VG_(strlen)         ( const HChar* str );
+extern SizeT  VG_(strnlen)        ( const HChar* str, SizeT n );
 extern HChar* VG_(strcat)         ( HChar* dest, const HChar* src );
 extern HChar* VG_(strncat)        ( HChar* dest, const HChar* src, SizeT n );
 extern HChar* VG_(strpbrk)        ( const HChar* s, const HChar* accpt );
 extern HChar* VG_(strcpy)         ( HChar* dest, const HChar* src );
 extern HChar* VG_(strncpy)        ( HChar* dest, const HChar* src, SizeT ndest );
+extern SizeT  VG_(strlcpy)        ( HChar* dest, const HChar* src, SizeT n );
 extern Int    VG_(strcmp)         ( const HChar* s1, const HChar* s2 );
 extern Int    VG_(strcasecmp)     ( const HChar* s1, const HChar* s2 );
 extern Int    VG_(strncmp)        ( const HChar* s1, const HChar* s2, SizeT nmax );

Modified: trunk/memcheck/tests/x86-linux/scalar.c
==============================================================================
--- trunk/memcheck/tests/x86-linux/scalar.c (original)
+++ trunk/memcheck/tests/x86-linux/scalar.c Wed Apr 26 20:27:14 2017
@@ -6,6 +6,7 @@
 #include <sched.h>
 #include <signal.h>
 #include <linux/mman.h> // MREMAP_FIXED
+#include <sys/prctl.h>
 
 // Here we are trying to trigger every syscall error (scalar errors and
 // memory errors) for every syscall.  We do this by passing a lot of bogus
@@ -775,6 +776,16 @@
    GO(__NR_prctl, "5s 0m");
    SY(__NR_prctl, x0, x0, x0, x0, x0); FAIL;
 
+   char buf16[16] = "123456789012345.";
+   buf16[15] = x0; // this will cause 'using unitialised value'
+   GO(__NR_prctl, "2s 0m");
+   SY(__NR_prctl, x0 + PR_SET_NAME, buf16); SUCC;
+
+   char buf17[17] = "1234567890123456.";
+   buf17[16] = x0; // this must not cause 'using unitialised value'
+   GO(__NR_prctl, "1s 0m");
+   SY(__NR_prctl, x0 + PR_SET_NAME, buf17); SUCC;
+
    // __NR_rt_sigreturn 173
    GO(__NR_rt_sigreturn, "n/a");
  //SY(__NR_rt_sigreturn); // (Not yet handled by Valgrind) FAIL;

Modified: trunk/memcheck/tests/x86-linux/scalar.stderr.exp
==============================================================================
--- trunk/memcheck/tests/x86-linux/scalar.stderr.exp (original)
+++ trunk/memcheck/tests/x86-linux/scalar.stderr.exp Wed Apr 26 20:27:14 2017
@@ -12,23 +12,23 @@
 -----------------------------------------------------
 Syscall param (syscallno) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:51)
+   by 0x........: main (scalar.c:52)
 
 Syscall param read(fd) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:51)
+   by 0x........: main (scalar.c:52)
 
 Syscall param read(buf) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:51)
+   by 0x........: main (scalar.c:52)
 
 Syscall param read(count) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:51)
+   by 0x........: main (scalar.c:52)
 
 Syscall param read(buf) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:51)
+   by 0x........: main (scalar.c:52)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -36,19 +36,19 @@
 -----------------------------------------------------
 Syscall param write(fd) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:55)
+   by 0x........: main (scalar.c:56)
 
 Syscall param write(buf) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:55)
+   by 0x........: main (scalar.c:56)
 
 Syscall param write(count) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:55)
+   by 0x........: main (scalar.c:56)
 
 Syscall param write(buf) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:55)
+   by 0x........: main (scalar.c:56)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -56,15 +56,15 @@
 -----------------------------------------------------
 Syscall param open(filename) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:59)
+   by 0x........: main (scalar.c:60)
 
 Syscall param open(flags) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:59)
+   by 0x........: main (scalar.c:60)
 
 Syscall param open(filename) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:59)
+   by 0x........: main (scalar.c:60)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -72,33 +72,33 @@
 -----------------------------------------------------
 Syscall param open(mode) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:65)
+   by 0x........: main (scalar.c:66)
 
 -----------------------------------------------------
   6:          __NR_close 1s 0m
 -----------------------------------------------------
 Syscall param close(fd) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:69)
+   by 0x........: main (scalar.c:70)
 
 -----------------------------------------------------
   7:        __NR_waitpid 3s 1m
 -----------------------------------------------------
 Syscall param waitpid(pid) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:73)
+   by 0x........: main (scalar.c:74)
 
 Syscall param waitpid(status) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:73)
+   by 0x........: main (scalar.c:74)
 
 Syscall param waitpid(options) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:73)
+   by 0x........: main (scalar.c:74)
 
 Syscall param waitpid(status) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:73)
+   by 0x........: main (scalar.c:74)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -106,15 +106,15 @@
 -----------------------------------------------------
 Syscall param creat(pathname) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:77)
+   by 0x........: main (scalar.c:78)
 
 Syscall param creat(mode) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:77)
+   by 0x........: main (scalar.c:78)
 
 Syscall param creat(pathname) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:77)
+   by 0x........: main (scalar.c:78)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -122,20 +122,20 @@
 -----------------------------------------------------
 Syscall param link(oldpath) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:81)
+   by 0x........: main (scalar.c:82)
 
 Syscall param link(newpath) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:81)
+   by 0x........: main (scalar.c:82)
 
 Syscall param link(oldpath) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:81)
+   by 0x........: main (scalar.c:82)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param link(newpath) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:81)
+   by 0x........: main (scalar.c:82)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -143,11 +143,11 @@
 -----------------------------------------------------
 Syscall param unlink(pathname) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:85)
+   by 0x........: main (scalar.c:86)
 
 Syscall param unlink(pathname) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:85)
+   by 0x........: main (scalar.c:86)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -155,19 +155,19 @@
 -----------------------------------------------------
 Syscall param execve(filename) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:89)
+   by 0x........: main (scalar.c:90)
 
 Syscall param execve(argv) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:89)
+   by 0x........: main (scalar.c:90)
 
 Syscall param execve(envp) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:89)
+   by 0x........: main (scalar.c:90)
 
 Syscall param execve(filename) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:89)
+   by 0x........: main (scalar.c:90)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -175,19 +175,19 @@
 -----------------------------------------------------
 Syscall param execve(filename) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:92)
+   by 0x........: main (scalar.c:93)
 
 Syscall param execve(argv) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:92)
+   by 0x........: main (scalar.c:93)
 
 Syscall param execve(envp) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:92)
+   by 0x........: main (scalar.c:93)
 
 Syscall param execve(filename) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:92)
+   by 0x........: main (scalar.c:93)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -195,30 +195,30 @@
 -----------------------------------------------------
 Syscall param execve(filename) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:96)
+   by 0x........: main (scalar.c:97)
 
 Syscall param execve(argv) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:96)
+   by 0x........: main (scalar.c:97)
 
 Syscall param execve(envp) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:96)
+   by 0x........: main (scalar.c:97)
 
 Syscall param execve(filename) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:96)
+   by 0x........: main (scalar.c:97)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param execve(argv) points to uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:96)
+   by 0x........: main (scalar.c:97)
  Address 0x........ is on thread 1's stack
- in frame #1, created by main (scalar.c:28)
+ in frame #1, created by main (scalar.c:29)
 
 Syscall param execve(argv[i]) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:96)
+   by 0x........: main (scalar.c:97)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -226,30 +226,30 @@
 -----------------------------------------------------
 Syscall param execve(filename) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:99)
+   by 0x........: main (scalar.c:100)
 
 Syscall param execve(argv) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:99)
+   by 0x........: main (scalar.c:100)
 
 Syscall param execve(envp) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:99)
+   by 0x........: main (scalar.c:100)
 
 Syscall param execve(filename) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:99)
+   by 0x........: main (scalar.c:100)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param execve(envp) points to uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:99)
+   by 0x........: main (scalar.c:100)
  Address 0x........ is on thread 1's stack
- in frame #1, created by main (scalar.c:28)
+ in frame #1, created by main (scalar.c:29)
 
 Syscall param execve(envp[i]) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:99)
+   by 0x........: main (scalar.c:100)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -257,11 +257,11 @@
 -----------------------------------------------------
 Syscall param chdir(path) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:103)
+   by 0x........: main (scalar.c:104)
 
 Syscall param chdir(path) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:103)
+   by 0x........: main (scalar.c:104)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -269,11 +269,11 @@
 -----------------------------------------------------
 Syscall param time(t) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:107)
+   by 0x........: main (scalar.c:108)
 
 Syscall param time(t) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:107)
+   by 0x........: main (scalar.c:108)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -281,19 +281,19 @@
 -----------------------------------------------------
 Syscall param mknod(pathname) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:111)
+   by 0x........: main (scalar.c:112)
 
 Syscall param mknod(mode) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:111)
+   by 0x........: main (scalar.c:112)
 
 Syscall param mknod(dev) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:111)
+   by 0x........: main (scalar.c:112)
 
 Syscall param mknod(pathname) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:111)
+   by 0x........: main (scalar.c:112)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -301,15 +301,15 @@
 -----------------------------------------------------
 Syscall param chmod(path) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:115)
+   by 0x........: main (scalar.c:116)
 
 Syscall param chmod(mode) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:115)
+   by 0x........: main (scalar.c:116)
 
 Syscall param chmod(path) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:115)
+   by 0x........: main (scalar.c:116)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -326,15 +326,15 @@
 -----------------------------------------------------
 Syscall param lseek(fd) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:131)
+   by 0x........: main (scalar.c:132)
 
 Syscall param lseek(offset) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:131)
+   by 0x........: main (scalar.c:132)
 
 Syscall param lseek(whence) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:131)
+   by 0x........: main (scalar.c:132)
 
 -----------------------------------------------------
  20:         __NR_getpid 0s 0m
@@ -344,32 +344,32 @@
 -----------------------------------------------------
 Syscall param mount(source) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:139)
+   by 0x........: main (scalar.c:140)
 
 Syscall param mount(target) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:139)
+   by 0x........: main (scalar.c:140)
 
 Syscall param mount(type) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:139)
+   by 0x........: main (scalar.c:140)
 
 Syscall param mount(flags) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:139)
+   by 0x........: main (scalar.c:140)
 
 Syscall param mount(data) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:139)
+   by 0x........: main (scalar.c:140)
 
 Syscall param mount(target) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:139)
+   by 0x........: main (scalar.c:140)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param mount(type) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:139)
+   by 0x........: main (scalar.c:140)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -377,11 +377,11 @@
 -----------------------------------------------------
 Syscall param umount(path) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:143)
+   by 0x........: main (scalar.c:144)
 
 Syscall param umount(path) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:143)
+   by 0x........: main (scalar.c:144)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -389,7 +389,7 @@
 -----------------------------------------------------
 Syscall param setuid16(uid) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:147)
+   by 0x........: main (scalar.c:148)
 
 -----------------------------------------------------
  24:         __NR_getuid 0s 0m
@@ -402,23 +402,23 @@
 -----------------------------------------------------
 Syscall param ptrace(request) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:160)
+   by 0x........: main (scalar.c:161)
 
 Syscall param ptrace(pid) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:160)
+   by 0x........: main (scalar.c:161)
 
 Syscall param ptrace(addr) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:160)
+   by 0x........: main (scalar.c:161)
 
 Syscall param ptrace(data) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:160)
+   by 0x........: main (scalar.c:161)
 
 Syscall param ptrace(getregs) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:160)
+   by 0x........: main (scalar.c:161)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -426,7 +426,7 @@
 -----------------------------------------------------
 Syscall param alarm(seconds) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:164)
+   by 0x........: main (scalar.c:165)
 
 -----------------------------------------------------
  28:       __NR_oldfstat n/a
@@ -439,20 +439,20 @@
 -----------------------------------------------------
 Syscall param utime(filename) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:176)
+   by 0x........: main (scalar.c:177)
 
 Syscall param utime(buf) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:176)
+   by 0x........: main (scalar.c:177)
 
 Syscall param utime(filename) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:176)
+   by 0x........: main (scalar.c:177)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param utime(buf) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:176)
+   by 0x........: main (scalar.c:177)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -466,15 +466,15 @@
 -----------------------------------------------------
 Syscall param access(pathname) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:188)
+   by 0x........: main (scalar.c:189)
 
 Syscall param access(mode) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:188)
+   by 0x........: main (scalar.c:189)
 
 Syscall param access(pathname) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:188)
+   by 0x........: main (scalar.c:189)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -482,7 +482,7 @@
 -----------------------------------------------------
 Syscall param nice(inc) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:192)
+   by 0x........: main (scalar.c:193)
 
 -----------------------------------------------------
  35:          __NR_ftime ni
@@ -495,31 +495,31 @@
 -----------------------------------------------------
 Syscall param kill(pid) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:204)
+   by 0x........: main (scalar.c:205)
 
 Syscall param kill(signal) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:204)
+   by 0x........: main (scalar.c:205)
 
 -----------------------------------------------------
  38:         __NR_rename 2s 2m
 -----------------------------------------------------
 Syscall param rename(oldpath) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:208)
+   by 0x........: main (scalar.c:209)
 
 Syscall param rename(newpath) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:208)
+   by 0x........: main (scalar.c:209)
 
 Syscall param rename(oldpath) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:208)
+   by 0x........: main (scalar.c:209)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param rename(newpath) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:208)
+   by 0x........: main (scalar.c:209)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -527,15 +527,15 @@
 -----------------------------------------------------
 Syscall param mkdir(pathname) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:212)
+   by 0x........: main (scalar.c:213)
 
 Syscall param mkdir(mode) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:212)
+   by 0x........: main (scalar.c:213)
 
 Syscall param mkdir(pathname) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:212)
+   by 0x........: main (scalar.c:213)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -543,11 +543,11 @@
 -----------------------------------------------------
 Syscall param rmdir(pathname) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:216)
+   by 0x........: main (scalar.c:217)
 
 Syscall param rmdir(pathname) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:216)
+   by 0x........: main (scalar.c:217)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -555,18 +555,18 @@
 -----------------------------------------------------
 Syscall param dup(oldfd) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:220)
+   by 0x........: main (scalar.c:221)
 
 -----------------------------------------------------
  42:           __NR_pipe 1s 1m
 -----------------------------------------------------
 Syscall param pipe(filedes) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:224)
+   by 0x........: main (scalar.c:225)
 
 Syscall param pipe(filedes) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:224)
+   by 0x........: main (scalar.c:225)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -574,14 +574,14 @@
 -----------------------------------------------------
 Syscall param times(buf) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:228)
+   by 0x........: main (scalar.c:229)
 
 
 More than 100 errors detected.  Subsequent errors
 will still be recorded, but in less detail than before.
 Syscall param times(buf) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:228)
+   by 0x........: main (scalar.c:229)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -592,14 +592,14 @@
 -----------------------------------------------------
 Syscall param brk(end_data_segment) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:236)
+   by 0x........: main (scalar.c:237)
 
 -----------------------------------------------------
  46:         __NR_setgid 1s 0m
 -----------------------------------------------------
 Syscall param setgid16(gid) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:240)
+   by 0x........: main (scalar.c:241)
 
 -----------------------------------------------------
  47:         __NR_getgid 0s 0m
@@ -618,11 +618,11 @@
 -----------------------------------------------------
 Syscall param acct(filename) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:260)
+   by 0x........: main (scalar.c:261)
 
 Syscall param acct(filename) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:260)
+   by 0x........: main (scalar.c:261)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -630,15 +630,15 @@
 -----------------------------------------------------
 Syscall param umount2(path) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:264)
+   by 0x........: main (scalar.c:265)
 
 Syscall param umount2(flags) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:264)
+   by 0x........: main (scalar.c:265)
 
 Syscall param umount2(path) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:264)
+   by 0x........: main (scalar.c:265)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -649,19 +649,19 @@
 -----------------------------------------------------
 Syscall param ioctl(fd) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:273)
+   by 0x........: main (scalar.c:274)
 
 Syscall param ioctl(request) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:273)
+   by 0x........: main (scalar.c:274)
 
 Syscall param ioctl(arg) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:273)
+   by 0x........: main (scalar.c:274)
 
 Syscall param ioctl(TCSET{S,SW,SF}) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:273)
+   by 0x........: main (scalar.c:274)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -669,49 +669,49 @@
 -----------------------------------------------------
 Syscall param fcntl(fd) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:279)
+   by 0x........: main (scalar.c:280)
 
 Syscall param fcntl(cmd) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:279)
+   by 0x........: main (scalar.c:280)
 
 -----------------------------------------------------
  55:          __NR_fcntl (DUPFD) 1s 0m
 -----------------------------------------------------
 Syscall param fcntl(arg) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:285)
+   by 0x........: main (scalar.c:286)
 
 -----------------------------------------------------
  55:          __NR_fcntl (GETLK) 1s 5m
 -----------------------------------------------------
 Syscall param fcntl(lock) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:291)
+   by 0x........: main (scalar.c:292)
 
 Syscall param fcntl(lock->l_type) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:291)
+   by 0x........: main (scalar.c:292)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param fcntl(lock->l_whence) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:291)
+   by 0x........: main (scalar.c:292)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param fcntl(lock->l_start) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:291)
+   by 0x........: main (scalar.c:292)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param fcntl(lock->l_len) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:291)
+   by 0x........: main (scalar.c:292)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param fcntl(lock->l_pid) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:291)
+   by 0x........: main (scalar.c:292)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -722,11 +722,11 @@
 -----------------------------------------------------
 Syscall param setpgid(pid) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:299)
+   by 0x........: main (scalar.c:300)
 
 Syscall param setpgid(pgid) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:299)
+   by 0x........: main (scalar.c:300)
 
 -----------------------------------------------------
  58:         __NR_ulimit ni
@@ -739,18 +739,18 @@
 -----------------------------------------------------
 Syscall param umask(mask) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:311)
+   by 0x........: main (scalar.c:312)
 
 -----------------------------------------------------
  61:         __NR_chroot 1s 1m
 -----------------------------------------------------
 Syscall param chroot(path) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:315)
+   by 0x........: main (scalar.c:316)
 
 Syscall param chroot(path) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:315)
+   by 0x........: main (scalar.c:316)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -761,11 +761,11 @@
 -----------------------------------------------------
 Syscall param dup2(oldfd) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:323)
+   by 0x........: main (scalar.c:324)
 
 Syscall param dup2(newfd) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:323)
+   by 0x........: main (scalar.c:324)
 
 -----------------------------------------------------
  64:        __NR_getppid 0s 0m
@@ -781,43 +781,43 @@
 -----------------------------------------------------
 Syscall param sigaction(signum) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:339)
+   by 0x........: main (scalar.c:340)
 
 Syscall param sigaction(act) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:339)
+   by 0x........: main (scalar.c:340)
 
 Syscall param sigaction(oldact) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:339)
+   by 0x........: main (scalar.c:340)
 
 Syscall param sigaction(act->sa_handler) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:339)
+   by 0x........: main (scalar.c:340)
  Address 0x........ is 0 bytes after a block of size 4 alloc'd
    at 0x........: malloc (vg_replace_malloc.c:...)
-   by 0x........: main (scalar.c:30)
+   by 0x........: main (scalar.c:31)
 
 Syscall param sigaction(act->sa_mask) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:339)
+   by 0x........: main (scalar.c:340)
  Address 0x........ is 4 bytes after a block of size 4 alloc'd
    at 0x........: malloc (vg_replace_malloc.c:...)
-   by 0x........: main (scalar.c:30)
+   by 0x........: main (scalar.c:31)
 
 Syscall param sigaction(act->sa_flags) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:339)
+   by 0x........: main (scalar.c:340)
  Address 0x........ is 8 bytes after a block of size 4 alloc'd
    at 0x........: malloc (vg_replace_malloc.c:...)
-   by 0x........: main (scalar.c:30)
+   by 0x........: main (scalar.c:31)
 
 Syscall param sigaction(oldact) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:339)
+   by 0x........: main (scalar.c:340)
  Address 0x........ is 0 bytes after a block of size 4 alloc'd
    at 0x........: malloc (vg_replace_malloc.c:...)
-   by 0x........: main (scalar.c:30)
+   by 0x........: main (scalar.c:31)
 
 -----------------------------------------------------
  68:       __NR_sgetmask n/a
@@ -830,22 +830,22 @@
 -----------------------------------------------------
 Syscall param setreuid16(ruid) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:351)
+   by 0x........: main (scalar.c:352)
 
 Syscall param setreuid16(euid) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:351)
+   by 0x........: main (scalar.c:352)
 
 -----------------------------------------------------
  71:       __NR_setregid 2s 0m
 -----------------------------------------------------
 Syscall param setregid16(rgid) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:355)
+   by 0x........: main (scalar.c:356)
 
 Syscall param setregid16(egid) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:355)
+   by 0x........: main (scalar.c:356)
 
 -----------------------------------------------------
  72:     __NR_sigsuspend ignore
@@ -855,11 +855,11 @@
 -----------------------------------------------------
 Syscall param sigpending(set) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:364)
+   by 0x........: main (scalar.c:365)
 
 Syscall param sigpending(set) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:364)
+   by 0x........: main (scalar.c:365)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -870,15 +870,15 @@
 -----------------------------------------------------
 Syscall param setrlimit(resource) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:372)
+   by 0x........: main (scalar.c:373)
 
 Syscall param setrlimit(rlim) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:372)
+   by 0x........: main (scalar.c:373)
 
 Syscall param setrlimit(rlim) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:372)
+   by 0x........: main (scalar.c:373)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -886,15 +886,15 @@
 -----------------------------------------------------
 Syscall param old_getrlimit(resource) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:376)
+   by 0x........: main (scalar.c:377)
 
 Syscall param old_getrlimit(rlim) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:376)
+   by 0x........: main (scalar.c:377)
 
 Syscall param old_getrlimit(rlim) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:376)
+   by 0x........: main (scalar.c:377)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -902,15 +902,15 @@
 -----------------------------------------------------
 Syscall param getrusage(who) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:380)
+   by 0x........: main (scalar.c:381)
 
 Syscall param getrusage(usage) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:380)
+   by 0x........: main (scalar.c:381)
 
 Syscall param getrusage(usage) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:380)
+   by 0x........: main (scalar.c:381)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -918,20 +918,20 @@
 -----------------------------------------------------
 Syscall param gettimeofday(tv) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:384)
+   by 0x........: main (scalar.c:385)
 
 Syscall param gettimeofday(tz) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:384)
+   by 0x........: main (scalar.c:385)
 
 Syscall param gettimeofday(tv) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:384)
+   by 0x........: main (scalar.c:385)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param gettimeofday(tz) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:384)
+   by 0x........: main (scalar.c:385)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -939,20 +939,20 @@
 -----------------------------------------------------
 Syscall param settimeofday(tv) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:388)
+   by 0x........: main (scalar.c:389)
 
 Syscall param settimeofday(tz) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:388)
+   by 0x........: main (scalar.c:389)
 
 Syscall param settimeofday(tv) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:388)
+   by 0x........: main (scalar.c:389)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param settimeofday(tz) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:388)
+   by 0x........: main (scalar.c:389)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -960,15 +960,15 @@
 -----------------------------------------------------
 Syscall param getgroups16(size) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:392)
+   by 0x........: main (scalar.c:393)
 
 Syscall param getgroups16(list) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:392)
+   by 0x........: main (scalar.c:393)
 
 Syscall param getgroups16(list) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:392)
+   by 0x........: main (scalar.c:393)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -976,15 +976,15 @@
 -----------------------------------------------------
 Syscall param setgroups16(size) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:396)
+   by 0x........: main (scalar.c:397)
 
 Syscall param setgroups16(list) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:396)
+   by 0x........: main (scalar.c:397)
 
 Syscall param setgroups16(list) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:396)
+   by 0x........: main (scalar.c:397)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -992,32 +992,32 @@
 -----------------------------------------------------
 Syscall param old_select(args) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:402)
+   by 0x........: main (scalar.c:403)
 
 Syscall param old_select(args) points to uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:402)
+   by 0x........: main (scalar.c:403)
  Address 0x........ is on thread 1's stack
- in frame #1, created by main (scalar.c:28)
+ in frame #1, created by main (scalar.c:29)
 
 Syscall param old_select(readfds) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:402)
+   by 0x........: main (scalar.c:403)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param old_select(writefds) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:402)
+   by 0x........: main (scalar.c:403)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param old_select(exceptfds) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:402)
+   by 0x........: main (scalar.c:403)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param old_select(timeout) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:402)
+   by 0x........: main (scalar.c:403)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -1025,20 +1025,20 @@
 -----------------------------------------------------
 Syscall param symlink(oldpath) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:407)
+   by 0x........: main (scalar.c:408)
 
 Syscall param symlink(newpath) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:407)
+   by 0x........: main (scalar.c:408)
 
 Syscall param symlink(oldpath) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:407)
+   by 0x........: main (scalar.c:408)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param symlink(newpath) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:407)
+   by 0x........: main (scalar.c:408)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -1049,24 +1049,24 @@
 -----------------------------------------------------
 Syscall param readlink(path) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:415)
+   by 0x........: main (scalar.c:416)
 
 Syscall param readlink(buf) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:415)
+   by 0x........: main (scalar.c:416)
 
 Syscall param readlink(bufsiz) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:415)
+   by 0x........: main (scalar.c:416)
 
 Syscall param readlink(path) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:415)
+   by 0x........: main (scalar.c:416)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param readlink(buf) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:415)
+   by 0x........: main (scalar.c:416)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -1086,39 +1086,39 @@
 -----------------------------------------------------
 Syscall param old_mmap(args) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:437)
+   by 0x........: main (scalar.c:438)
 
 Syscall param old_mmap(args) points to uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:437)
+   by 0x........: main (scalar.c:438)
  Address 0x........ is on thread 1's stack
- in frame #1, created by main (scalar.c:28)
+ in frame #1, created by main (scalar.c:29)
 
 -----------------------------------------------------
  91:         __NR_munmap 2s 0m
 -----------------------------------------------------
 Syscall param munmap(start) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:442)
+   by 0x........: main (scalar.c:443)
 
 Syscall param munmap(length) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:442)
+   by 0x........: main (scalar.c:443)
 
 -----------------------------------------------------
  92:       __NR_truncate 2s 1m
 -----------------------------------------------------
 Syscall param truncate(path) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:446)
+   by 0x........: main (scalar.c:447)
 
 Syscall param truncate(length) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:446)
+   by 0x........: main (scalar.c:447)
 
 Syscall param truncate(path) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:446)
+   by 0x........: main (scalar.c:447)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -1126,63 +1126,63 @@
 -----------------------------------------------------
 Syscall param ftruncate(fd) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:450)
+   by 0x........: main (scalar.c:451)
 
 Syscall param ftruncate(length) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:450)
+   by 0x........: main (scalar.c:451)
 
 -----------------------------------------------------
  94:         __NR_fchmod 2s 0m
 -----------------------------------------------------
 Syscall param fchmod(fildes) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:454)
+   by 0x........: main (scalar.c:455)
 
 Syscall param fchmod(mode) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:454)
+   by 0x........: main (scalar.c:455)
 
 -----------------------------------------------------
  95:         __NR_fchown 3s 0m
 -----------------------------------------------------
 Syscall param fchown16(fd) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:458)
+   by 0x........: main (scalar.c:459)
 
 Syscall param fchown16(owner) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:458)
+   by 0x........: main (scalar.c:459)
 
 Syscall param fchown16(group) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:458)
+   by 0x........: main (scalar.c:459)
 
 -----------------------------------------------------
  96:    __NR_getpriority 2s 0m
 -----------------------------------------------------
 Syscall param getpriority(which) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:462)
+   by 0x........: main (scalar.c:463)
 
 Syscall param getpriority(who) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:462)
+   by 0x........: main (scalar.c:463)
 
 -----------------------------------------------------
  97:    __NR_setpriority 3s 0m
 -----------------------------------------------------
 Syscall param setpriority(which) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:466)
+   by 0x........: main (scalar.c:467)
 
 Syscall param setpriority(who) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:466)
+   by 0x........: main (scalar.c:467)
 
 Syscall param setpriority(prio) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:466)
+   by 0x........: main (scalar.c:467)
 
 -----------------------------------------------------
  98:         __NR_profil ni
@@ -1192,20 +1192,20 @@
 -----------------------------------------------------
 Syscall param statfs(path) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:474)
+   by 0x........: main (scalar.c:475)
 
 Syscall param statfs(buf) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:474)
+   by 0x........: main (scalar.c:475)
 
 Syscall param statfs(path) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:474)
+   by 0x........: main (scalar.c:475)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param statfs(buf) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:474)
+   by 0x........: main (scalar.c:475)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -1213,15 +1213,15 @@
 -----------------------------------------------------
 Syscall param fstatfs(fd) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:478)
+   by 0x........: main (scalar.c:479)
 
 Syscall param fstatfs(buf) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:478)
+   by 0x........: main (scalar.c:479)
 
 Syscall param fstatfs(buf) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:478)
+   by 0x........: main (scalar.c:479)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -1229,15 +1229,15 @@
 -----------------------------------------------------
 Syscall param ioperm(from) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:482)
+   by 0x........: main (scalar.c:483)
 
 Syscall param ioperm(num) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:482)
+   by 0x........: main (scalar.c:483)
 
 Syscall param ioperm(turn_on) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:482)
+   by 0x........: main (scalar.c:483)
 
 -----------------------------------------------------
 102:     __NR_socketcall XXX
@@ -1247,19 +1247,19 @@
 -----------------------------------------------------
 Syscall param syslog(type) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:490)
+   by 0x........: main (scalar.c:491)
 
 Syscall param syslog(bufp) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:490)
+   by 0x........: main (scalar.c:491)
 
 Syscall param syslog(len) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:490)
+   by 0x........: main (scalar.c:491)
 
 Syscall param syslog(bufp) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:490)
+   by 0x........: main (scalar.c:491)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -1267,34 +1267,34 @@
 -----------------------------------------------------
 Syscall param setitimer(which) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:494)
+   by 0x........: main (scalar.c:495)
 
 Syscall param setitimer(value) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:494)
+   by 0x........: main (scalar.c:495)
 
 Syscall param setitimer(ovalue) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:494)
+   by 0x........: main (scalar.c:495)
 
 Syscall param setitimer(&value->it_interval) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:494)
+   by 0x........: main (scalar.c:495)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param setitimer(&value->it_value) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:494)
+   by 0x........: main (scalar.c:495)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param setitimer(&ovalue->it_interval) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:494)
+   by 0x........: main (scalar.c:495)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param setitimer(&ovalue->it_value) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:494)
+   by 0x........: main (scalar.c:495)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -1302,20 +1302,20 @@
 -----------------------------------------------------
 Syscall param getitimer(which) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:498)
+   by 0x........: main (scalar.c:499)
 
 Syscall param getitimer(value) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:498)
+   by 0x........: main (scalar.c:499)
 
 Syscall param getitimer(&value->it_interval) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:498)
+   by 0x........: main (scalar.c:499)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param getitimer(&value->it_value) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:498)
+   by 0x........: main (scalar.c:499)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -1323,20 +1323,20 @@
 -----------------------------------------------------
 Syscall param stat(file_name) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:502)
+   by 0x........: main (scalar.c:503)
 
 Syscall param stat(buf) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:502)
+   by 0x........: main (scalar.c:503)
 
 Syscall param stat(file_name) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:502)
+   by 0x........: main (scalar.c:503)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param stat(buf) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:502)
+   by 0x........: main (scalar.c:503)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -1344,20 +1344,20 @@
 -----------------------------------------------------
 Syscall param lstat(file_name) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:506)
+   by 0x........: main (scalar.c:507)
 
 Syscall param lstat(buf) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:506)
+   by 0x........: main (scalar.c:507)
 
 Syscall param lstat(file_name) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:506)
+   by 0x........: main (scalar.c:507)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param lstat(buf) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:506)
+   by 0x........: main (scalar.c:507)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -1365,15 +1365,15 @@
 -----------------------------------------------------
 Syscall param fstat(fd) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:510)
+   by 0x........: main (scalar.c:511)
 
 Syscall param fstat(buf) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:510)
+   by 0x........: main (scalar.c:511)
 
 Syscall param fstat(buf) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:510)
+   by 0x........: main (scalar.c:511)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -1384,7 +1384,7 @@
 -----------------------------------------------------
 Syscall param iopl(level) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:518)
+   by 0x........: main (scalar.c:519)
 
 -----------------------------------------------------
 111:        __NR_vhangup 0s 0m
@@ -1400,28 +1400,28 @@
 -----------------------------------------------------
 Syscall param wait4(pid) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:534)
+   by 0x........: main (scalar.c:535)
 
 Syscall param wait4(status) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:534)
+   by 0x........: main (scalar.c:535)
 
 Syscall param wait4(options) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:534)
+   by 0x........: main (scalar.c:535)
 
 Syscall param wait4(rusage) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:534)
+   by 0x........: main (scalar.c:535)
 
 Syscall param wait4(status) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:534)
+   by 0x........: main (scalar.c:535)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param wait4(rusage) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:534)
+   by 0x........: main (scalar.c:535)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -1432,11 +1432,11 @@
 -----------------------------------------------------
 Syscall param sysinfo(info) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:542)
+   by 0x........: main (scalar.c:543)
 
 Syscall param sysinfo(info) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:542)
+   by 0x........: main (scalar.c:543)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -1444,34 +1444,34 @@
 -----------------------------------------------------
 Syscall param ipc(call) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:549)
+   by 0x........: main (scalar.c:550)
 
 Syscall param ipc(first) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:549)
+   by 0x........: main (scalar.c:550)
 
 Syscall param ipc(second) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:549)
+   by 0x........: main (scalar.c:550)
 
 Syscall param ipc(third) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:549)
+   by 0x........: main (scalar.c:550)
 
 Syscall param ipc(ptr) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:549)
+   by 0x........: main (scalar.c:550)
 
 Syscall param ipc(fifth) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:549)
+   by 0x........: main (scalar.c:550)
 
 -----------------------------------------------------
 118:          __NR_fsync 1s 0m
 -----------------------------------------------------
 Syscall param fsync(fd) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:553)
+   by 0x........: main (scalar.c:554)
 
 -----------------------------------------------------
 119:      __NR_sigreturn n/a
@@ -1481,37 +1481,37 @@
 -----------------------------------------------------
 Syscall param clone(flags) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:564)
+   by 0x........: main (scalar.c:565)
 
 Syscall param clone(child_stack) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:564)
+   by 0x........: main (scalar.c:565)
 
 Syscall param clone(parent_tidptr) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:564)
+   by 0x........: main (scalar.c:565)
 
 Syscall param clone(parent_tidptr) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:564)
+   by 0x........: main (scalar.c:565)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param clone(tlsinfo) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:564)
+   by 0x........: main (scalar.c:565)
 
 Syscall param clone(tlsinfo) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:564)
+   by 0x........: main (scalar.c:565)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param clone(child_tidptr) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:564)
+   by 0x........: main (scalar.c:565)
 
 Syscall param clone(child_tidptr) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:564)
+   by 0x........: main (scalar.c:565)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -1522,11 +1522,11 @@
 -----------------------------------------------------
 Syscall param uname(buf) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:575)
+   by 0x........: main (scalar.c:576)
 
 Syscall param uname(buf) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:575)
+   by 0x........: main (scalar.c:576)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -1534,19 +1534,19 @@
 -----------------------------------------------------
 Syscall param modify_ldt(func) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:579)
+   by 0x........: main (scalar.c:580)
 
 Syscall param modify_ldt(ptr) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:579)
+   by 0x........: main (scalar.c:580)
 
 Syscall param modify_ldt(bytecount) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:579)
+   by 0x........: main (scalar.c:580)
 
 Syscall param modify_ldt(ptr) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:579)
+   by 0x........: main (scalar.c:580)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -1557,44 +1557,44 @@
 -----------------------------------------------------
 Syscall param mprotect(addr) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:588)
+   by 0x........: main (scalar.c:589)
 
 Syscall param mprotect(len) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:588)
+   by 0x........: main (scalar.c:589)
 
 Syscall param mprotect(prot) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:588)
+   by 0x........: main (scalar.c:589)
 
 -----------------------------------------------------
 126:    __NR_sigprocmask 3s 2m
 -----------------------------------------------------
 Syscall param sigprocmask(how) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:592)
+   by 0x........: main (scalar.c:593)
 
 Syscall param sigprocmask(set) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:592)
+   by 0x........: main (scalar.c:593)
 
 Syscall param sigprocmask(oldset) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:592)
+   by 0x........: main (scalar.c:593)
 
 Syscall param sigprocmask(set) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:592)
+   by 0x........: main (scalar.c:593)
  Address 0x........ is 0 bytes after a block of size 4 alloc'd
    at 0x........: malloc (vg_replace_malloc.c:...)
-   by 0x........: main (scalar.c:30)
+   by 0x........: main (scalar.c:31)
 
 Syscall param sigprocmask(oldset) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:592)
+   by 0x........: main (scalar.c:593)
  Address 0x........ is 0 bytes after a block of size 4 alloc'd
    at 0x........: malloc (vg_replace_malloc.c:...)
-   by 0x........: main (scalar.c:30)
+   by 0x........: main (scalar.c:31)
 
 -----------------------------------------------------
 127:  __NR_create_module ni
@@ -1604,24 +1604,24 @@
 -----------------------------------------------------
 Syscall param init_module(umod) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:600)
+   by 0x........: main (scalar.c:601)
 
 Syscall param init_module(len) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:600)
+   by 0x........: main (scalar.c:601)
 
 Syscall param init_module(uargs) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:600)
+   by 0x........: main (scalar.c:601)
 
 Syscall param init_module(umod) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:600)
+   by 0x........: main (scalar.c:601)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param init_module(uargs) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:600)
+   by 0x........: main (scalar.c:601)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -1635,23 +1635,23 @@
 -----------------------------------------------------
 Syscall param quotactl(cmd) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:612)
+   by 0x........: main (scalar.c:613)
 
 Syscall param quotactl(special) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:612)
+   by 0x........: main (scalar.c:613)
 
 Syscall param quotactl(id) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:612)
+   by 0x........: main (scalar.c:613)
 
 Syscall param quotactl(addr) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:612)
+   by 0x........: main (scalar.c:613)
 
 Syscall param quotactl(special) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:612)
+   by 0x........: main (scalar.c:613)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -1659,14 +1659,14 @@
 -----------------------------------------------------
 Syscall param getpgid(pid) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:616)
+   by 0x........: main (scalar.c:617)
 
 -----------------------------------------------------
 133:         __NR_fchdir 1s 0m
 -----------------------------------------------------
 Syscall param fchdir(fd) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:620)
+   by 0x........: main (scalar.c:621)
 
 -----------------------------------------------------
 134:        __NR_bdflush n/a
@@ -1679,7 +1679,7 @@
 -----------------------------------------------------
 Syscall param personality(persona) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:632)
+   by 0x........: main (scalar.c:633)
 
 -----------------------------------------------------
 137:    __NR_afs_syscall ni
@@ -1689,41 +1689,41 @@
 -----------------------------------------------------
 Syscall param setfsuid16(uid) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:640)
+   by 0x........: main (scalar.c:641)
 
 -----------------------------------------------------
 139:       __NR_setfsgid 1s 0m
 -----------------------------------------------------
 Syscall param setfsgid16(gid) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:644)
+   by 0x........: main (scalar.c:645)
 
 -----------------------------------------------------
 140:        __NR__llseek 5s 1m
 -----------------------------------------------------
 Syscall param llseek(fd) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:648)
+   by 0x........: main (scalar.c:649)
 
 Syscall param llseek(offset_high) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:648)
+   by 0x........: main (scalar.c:649)
 
 Syscall param llseek(offset_low) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:648)
+   by 0x........: main (scalar.c:649)
 
 Syscall param llseek(result) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:648)
+   by 0x........: main (scalar.c:649)
 
 Syscall param llseek(whence) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:648)
+   by 0x........: main (scalar.c:649)
 
 Syscall param llseek(result) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:648)
+   by 0x........: main (scalar.c:649)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -1731,19 +1731,19 @@
 -----------------------------------------------------
 Syscall param getdents(fd) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:652)
+   by 0x........: main (scalar.c:653)
 
 Syscall param getdents(dirp) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:652)
+   by 0x........: main (scalar.c:653)
 
 Syscall param getdents(count) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:652)
+   by 0x........: main (scalar.c:653)
 
 Syscall param getdents(dirp) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:652)
+   by 0x........: main (scalar.c:653)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -1751,42 +1751,42 @@
 -----------------------------------------------------
 Syscall param select(n) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:656)
+   by 0x........: main (scalar.c:657)
 
 Syscall param select(readfds) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:656)
+   by 0x........: main (scalar.c:657)
 
 Syscall param select(writefds) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:656)
+   by 0x........: main (scalar.c:657)
 
 Syscall param select(exceptfds) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:656)
+   by 0x........: main (scalar.c:657)
 
 Syscall param select(timeout) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:656)
+   by 0x........: main (scalar.c:657)
 
 Syscall param select(readfds) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:656)
+   by 0x........: main (scalar.c:657)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param select(writefds) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:656)
+   by 0x........: main (scalar.c:657)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param select(exceptfds) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:656)
+   by 0x........: main (scalar.c:657)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param select(timeout) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:656)
+   by 0x........: main (scalar.c:657)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -1794,30 +1794,30 @@
 -----------------------------------------------------
 Syscall param flock(fd) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:660)
+   by 0x........: main (scalar.c:661)
 
 Syscall param flock(operation) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:660)
+   by 0x........: main (scalar.c:661)
 
 -----------------------------------------------------
 144:          __NR_msync 3s 1m
 -----------------------------------------------------
 Syscall param msync(start) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:664)
+   by 0x........: main (scalar.c:665)
 
 Syscall param msync(length) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:664)
+   by 0x........: main (scalar.c:665)
 
 Syscall param msync(flags) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:664)
+   by 0x........: main (scalar.c:665)
 
 Syscall param msync(start) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:664)
+   by 0x........: main (scalar.c:665)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -1825,19 +1825,19 @@
 -----------------------------------------------------
 Syscall param readv(fd) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:668)
+   by 0x........: main (scalar.c:669)
 
 Syscall param readv(vector) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:668)
+   by 0x........: main (scalar.c:669)
 
 Syscall param readv(count) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:668)
+   by 0x........: main (scalar.c:669)
 
 Syscall param readv(vector) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:668)
+   by 0x........: main (scalar.c:669)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -1845,19 +1845,19 @@
 -----------------------------------------------------
 Syscall param writev(fd) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:672)
+   by 0x........: main (scalar.c:673)
 
 Syscall param writev(vector) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:672)
+   by 0x........: main (scalar.c:673)
 
 Syscall param writev(count) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:672)
+   by 0x........: main (scalar.c:673)
 
 Syscall param writev(vector) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:672)
+   by 0x........: main (scalar.c:673)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -1865,25 +1865,25 @@
 -----------------------------------------------------
 Syscall param getsid(pid) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:676)
+   by 0x........: main (scalar.c:677)
 
 -----------------------------------------------------
 148:      __NR_fdatasync 1s 0m
 -----------------------------------------------------
 Syscall param fdatasync(fd) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:680)
+   by 0x........: main (scalar.c:681)
 
 -----------------------------------------------------
 149:        __NR__sysctl 1s 1m
 -----------------------------------------------------
 Syscall param sysctl(args) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:684)
+   by 0x........: main (scalar.c:685)
 
 Syscall param sysctl(args) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:684)
+   by 0x........: main (scalar.c:685)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -1891,29 +1891,29 @@
 -----------------------------------------------------
 Syscall param mlock(addr) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:688)
+   by 0x........: main (scalar.c:689)
 
 Syscall param mlock(len) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:688)
+   by 0x........: main (scalar.c:689)
 
 -----------------------------------------------------
 151:        __NR_munlock 2s 0m
 -----------------------------------------------------
 Syscall param munlock(addr) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:692)
+   by 0x........: main (scalar.c:693)
 
 Syscall param munlock(len) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:692)
+   by 0x........: main (scalar.c:693)
 
 -----------------------------------------------------
 152:       __NR_mlockall 1s 0m
 -----------------------------------------------------
 Syscall param mlockall(flags) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:696)
+   by 0x........: main (scalar.c:697)
 
 -----------------------------------------------------
 153:     __NR_munlockall 0s 0m
@@ -1923,15 +1923,15 @@
 -----------------------------------------------------
 Syscall param sched_setparam(pid) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:704)
+   by 0x........: main (scalar.c:705)
 
 Syscall param sched_setparam(p) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:704)
+   by 0x........: main (scalar.c:705)
 
 Syscall param sched_setparam(p) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:704)
+   by 0x........: main (scalar.c:705)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -1939,15 +1939,15 @@
 -----------------------------------------------------
 Syscall param sched_getparam(pid) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:708)
+   by 0x........: main (scalar.c:709)
 
 Syscall param sched_getparam(p) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:708)
+   by 0x........: main (scalar.c:709)
 
 Syscall param sched_getparam(p) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:708)
+   by 0x........: main (scalar.c:709)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -1955,19 +1955,19 @@
 -----------------------------------------------------
 Syscall param sched_setscheduler(pid) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:712)
+   by 0x........: main (scalar.c:713)
 
 Syscall param sched_setscheduler(policy) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:712)
+   by 0x........: main (scalar.c:713)
 
 Syscall param sched_setscheduler(p) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:712)
+   by 0x........: main (scalar.c:713)
 
 Syscall param sched_setscheduler(p) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:712)
+   by 0x........: main (scalar.c:713)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -1975,7 +1975,7 @@
 -----------------------------------------------------
 Syscall param sched_getscheduler(pid) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:716)
+   by 0x........: main (scalar.c:717)
 
 -----------------------------------------------------
 158:    __NR_sched_yield 0s 0m
@@ -1985,14 +1985,14 @@
 -----------------------------------------------------
 Syscall param sched_get_priority_max(policy) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:724)
+   by 0x........: main (scalar.c:725)
 
 -----------------------------------------------------
 160:__NR_sched_get_priority_min 1s 0m
 -----------------------------------------------------
 Syscall param sched_get_priority_min(policy) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:728)
+   by 0x........: main (scalar.c:729)
 
 -----------------------------------------------------
 161:__NR_sched_rr_get_interval n/a
@@ -2002,20 +2002,20 @@
 -----------------------------------------------------
 Syscall param nanosleep(req) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:736)
+   by 0x........: main (scalar.c:737)
 
 Syscall param nanosleep(rem) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:736)
+   by 0x........: main (scalar.c:737)
 
 Syscall param nanosleep(req) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:736)
+   by 0x........: main (scalar.c:737)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param nanosleep(rem) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:736)
+   by 0x........: main (scalar.c:737)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -2023,67 +2023,67 @@
 -----------------------------------------------------
 Syscall param mremap(old_addr) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:740)
+   by 0x........: main (scalar.c:741)
 
 Syscall param mremap(old_size) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:740)
+   by 0x........: main (scalar.c:741)
 
 Syscall param mremap(new_size) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:740)
+   by 0x........: main (scalar.c:741)
 
 Syscall param mremap(flags) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:740)
+   by 0x........: main (scalar.c:741)
 
 Syscall param mremap(new_addr) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:740)
+   by 0x........: main (scalar.c:741)
 
 -----------------------------------------------------
 164:      __NR_setresuid 3s 0m
 -----------------------------------------------------
 Syscall param setresuid16(ruid) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:744)
+   by 0x........: main (scalar.c:745)
 
 Syscall param setresuid16(euid) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:744)
+   by 0x........: main (scalar.c:745)
 
 Syscall param setresuid16(suid) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:744)
+   by 0x........: main (scalar.c:745)
 
 -----------------------------------------------------
 165:      __NR_getresuid 3s 3m
 -----------------------------------------------------
 Syscall param getresuid16(ruid) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:748)
+   by 0x........: main (scalar.c:749)
 
 Syscall param getresuid16(euid) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:748)
+   by 0x........: main (scalar.c:749)
 
 Syscall param getresuid16(suid) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:748)
+   by 0x........: main (scalar.c:749)
 
 Syscall param getresuid16(ruid) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:748)
+   by 0x........: main (scalar.c:749)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param getresuid16(euid) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:748)
+   by 0x........: main (scalar.c:749)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param getresuid16(suid) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:748)
+   by 0x........: main (scalar.c:749)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -2097,29 +2097,29 @@
 -----------------------------------------------------
 Syscall param poll(ufds) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:760)
+   by 0x........: main (scalar.c:761)
 
 Syscall param poll(nfds) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:760)
+   by 0x........: main (scalar.c:761)
 
 Syscall param poll(timeout) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:760)
+   by 0x........: main (scalar.c:761)
 
 Syscall param poll(ufds.fd) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:760)
+   by 0x........: main (scalar.c:761)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param poll(ufds.events) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:760)
+   by 0x........: main (scalar.c:761)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param poll(ufds.revents) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:760)
+   by 0x........: main (scalar.c:761)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -2130,44 +2130,44 @@
 -----------------------------------------------------
 Syscall param setresgid16(rgid) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:768)
+   by 0x........: main (scalar.c:769)
 
 Syscall param setresgid16(egid) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:768)
+   by 0x........: main (scalar.c:769)
 
 Syscall param setresgid16(sgid) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:768)
+   by 0x........: main (scalar.c:769)
 
 -----------------------------------------------------
 171:      __NR_getresgid 3s 3m
 -----------------------------------------------------
 Syscall param getresgid16(rgid) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:772)
+   by 0x........: main (scalar.c:773)
 
 Syscall param getresgid16(egid) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:772)
+   by 0x........: main (scalar.c:773)
 
 Syscall param getresgid16(sgid) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:772)
+   by 0x........: main (scalar.c:773)
 
 Syscall param getresgid16(rgid) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:772)
+   by 0x........: main (scalar.c:773)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param getresgid16(egid) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:772)
+   by 0x........: main (scalar.c:773)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 Syscall param getresgid16(sgid) points to unaddressable byte(s)
    ...
-   by 0x........: main (scalar.c:772)
+   by 0x........: main (scalar.c:773)
  Address 0x........ is not stack'd, malloc'd or (recently) free'd
 
 -----------------------------------------------------
@@ -2175,23 +2175,43 @@
 -----------------------------------------------------
 Syscall param prctl(option) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:776)
+   by 0x........: main (scalar.c:777)
 
 Syscall param prctl(arg2) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:776)
+   by 0x........: main (scalar.c:777)
 
 Syscall param prctl(arg3) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:776)
+   by 0x........: main (scalar.c:777)
 
 Syscall param prctl(arg4) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:776)
+   by 0x........: main (scalar.c:777)
 
 Syscall param prctl(arg5) contains uninitialised byte(s)
    ...
-   by 0x........: main (scalar.c:776)
+   by 0x........: main (scalar.c:777)
+
+-----------------------------------------------------
+172:          __NR_prctl 2s 0m
+-----------------------------------------------------
+Syscall param prctl(option) contains uninitialised byte(s)
+   ...
+   by 0x........: main (scalar.c:782)
+
+Syscall param prctl(set-name) points to uninitialised byte(s)
+   ...
+   by 0x........: main (scalar.c:782)
+ Address 0x........ is on thread 1's stack
+ in frame #1, created by main (scalar.c:29)
+
+-----------------------------------------------------
+172:          __NR_prctl 1s 0m

[... 2307 lines stripped ...]

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Valgrind-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/valgrind-developers
Loading...