]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commit
Make TimeUtil_GetTimeFormat avoid a null pointer dereference if ctime_r fails
authorOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:54 +0000 (11:23 -0700)
committerOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:54 +0000 (11:23 -0700)
commit321eaaafc80bc4d7e7c07b779d8021ff7adb27fc
tree190a4d7bde3a40bc6905556d2115cf901afbc724
parent74fab8557791b3b546c39a0a833ff9b5d9914d40
Make TimeUtil_GetTimeFormat avoid a null pointer dereference if ctime_r fails

ctime_r potentially could return NULL on failure.  Instead of
blindly dereferencing the result, TimeUtil_GetTimeFormat
should check for that and also return NULL (which callers
should already expect on failure).
open-vm-tools/lib/misc/timeutil.c