]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
locks: Increase buffer size in MXUserHistoDump
authorOliver Kurth <okurth@vmware.com>
Tue, 5 Jun 2018 22:45:06 +0000 (15:45 -0700)
committerOliver Kurth <okurth@vmware.com>
Tue, 5 Jun 2018 22:45:06 +0000 (15:45 -0700)
It was noticed that the size of one of the char arrays in MXUserHistoDump
is not large enough given the format string. This change bumps the
size to accommodate (plus slack).

open-vm-tools/lib/lock/ulStats.c

index c8b6692c1289bde3a4a643401d96b604568de517..542a85aeed782ad464bcfefe7dacca66ca3e026f 100644 (file)
@@ -422,7 +422,7 @@ MXUserHistoDump(MXUserHisto *histo,    // IN:
       for (i = 0; i < TOPOWNERS; i++) {
          if (histo->ownerArray[i].address != NULL) {
             uint32 len;
-            char binEntry[32];
+            char binEntry[44];
 
             /* Use a debugger to change the address to a symbol */
             len = Str_Sprintf(binEntry, sizeof binEntry, " %p-%"FMT64"u\n",