]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commit
[Coverity]: Fixes for issues found from static application security testing
authorKruti <kpendharkar@vmware.com>
Tue, 21 May 2024 05:58:13 +0000 (22:58 -0700)
committerKruti <kpendharkar@vmware.com>
Tue, 21 May 2024 05:58:13 +0000 (22:58 -0700)
commit8cd75607fbb7b5923f791c3cd8270d88b73fbef2
tree34803df0b18e3a56fb18f2a826fc06e52a7c5c18
parentb91770061d3000de3fbe0994480579d1c2ca62f8
[Coverity]: Fixes for issues found from static application security testing

Adding coverity escapes for false-positive issues.

hgfsServerParameters.c -- 1 issue reported.
issue: Overrunning array of 5 bytes at byte offset 5 by dereferencing
       pointer "newName".
impact: False-Positive
fix: suppress 'overrun-local'

vmhgfs-fuse/file.c -- 2 issues reported.
issue: Overrunning array of n bytes at byte offset n by dereferencing
       pointer "newNameP" (n is 17 and 5 respectively for those 2 locations
       where the issue occured).
impact: False-Positive
fix: suppress 'overrun-local'

vmhgfs-fuse/link.c -- 2 issues reported.
issue: Overrunning array of n bytes at byte offset n by dereferencing
       pointer "fileNameP" (n is 17 and 5 respectively for those 2 locations
       where the issue occured).
impact: False-Positive
fix: suppress 'overrun-local'

vmhgfs-fuse/transport.c -- 1 issue reported.
issue: uninit_use_in_call: Using uninitialized value "reply" while calling
       HgfsCompleteReq() function.
impact: Bug
fix: Remove function, it is unused/dead code (transport.h too).
open-vm-tools/lib/hgfsServer/hgfsServerParameters.c
open-vm-tools/vmhgfs-fuse/file.c
open-vm-tools/vmhgfs-fuse/link.c
open-vm-tools/vmhgfs-fuse/transport.c
open-vm-tools/vmhgfs-fuse/transport.h