]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commit
[AppInfo] OVT Coverity fixes.
authorOliver Kurth <okurth@vmware.com>
Mon, 9 Sep 2019 18:23:49 +0000 (11:23 -0700)
committerOliver Kurth <okurth@vmware.com>
Mon, 9 Sep 2019 18:23:49 +0000 (11:23 -0700)
commita2668aedffce69784b29da9bc951492dc5657840
tree62370a8211ead4e1edf2ed14a4a158a255c2fa2f
parentd15cb89dbaf17e6e9f89ed02fc180ebe43a49eb9
[AppInfo] OVT Coverity fixes.

The return value of Str_Snprintf is not being checked for negative
values and is directly passed to DynBuf_Append which accepts only
positive values. This may cause issues if Str_Snprintf fails. Added
a trivial check.

Initialized appList variable to NULL.
open-vm-tools/services/plugins/appInfo/appInfo.c