Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CodeAi fixes: 1 Null Deref, and 4 Dead Code #247

Closed
wants to merge 5 commits into from

Conversation

C0deAi
Copy link

@C0deAi C0deAi commented May 1, 2018

CodeAI (www.mycode.ai) found 166 defects and fixed 40 in open-vm-tools. It wants to merge commits fixing 5 of these issues- 1 Null Pointer Dereference, and 4 Dead Code. A screenshot of the results as well as the Dockerfile used to build and run your project in CodeAI can be found here.

C0deAi added 5 commits May 1, 2018 16:58
Access to field 'name' results in a dereference of a null pointer
(loaded from field 'data')

Signed-off-by: C0deAi <techsupport@mycode.ai>
Value stored to 'rc' is never read

Signed-off-by: C0deAi <techsupport@mycode.ai>
Value stored to 'memNeededReservation' is never read

Signed-off-by: C0deAi <techsupport@mycode.ai>
Value stored to 'n' is never read

Signed-off-by: C0deAi <techsupport@mycode.ai>
Value stored to 'error' is never read

Signed-off-by: C0deAi <techsupport@mycode.ai>
@vmwclabot
Copy link
Member

@C0deAi, you must sign our contributor license agreement before your changes are merged. Click here to sign the agreement. If you are a VMware employee, read this for further instruction.

@vmwclabot
Copy link
Member

@C0deAi, your company's legal contact has approved your signed contributor license agreement. It will also be reviewed by VMware, but the merge can proceed.

@vmwclabot
Copy link
Member

@C0deAi, VMware has approved your signed contributor license agreement.

@johnwvmw
Copy link
Contributor

johnwvmw commented May 6, 2018

@C0deAi,
Thanks for your contribution. Your contribution will go through a review process at VMware. An update will be provided once the review is completed.

oliverkurth added a commit that referenced this pull request Dec 18, 2018
QbitLogic has run [Code]Ai on the open-vm-tools source code and
and notified VMware of a potential NULL pointer reference and four
pieces of dead code.

See #247

bora-vmsoft/services/vmtoolsd/pluginMgr.c
The proposed fix conditionally emitted a log message.  That fix has
been reworked to consistently emit a log message with conditional
content.

bora/lib/misc/posixPosix.c
bora-vmsoft/apps/toolbox-cmd/toolboxcmd-shrink.c
Remove one line of dead code from each source file.

bora-vmsoft/lib/procMgr/procMgrPosix.c:
Suggested dead code fix actually pointed to a bug where errno
was not getting updated as intended.

bora-vmsoft/services/plugins/guestInfo/perfMonLinux.c:
Suggested dead code is no longer dead; change not applicable.
oliverkurth added a commit that referenced this pull request Jan 29, 2019
QbitLogic has run [Code]Ai on the open-vm-tools source code and
and notified VMware of a potential NULL pointer reference and four
pieces of dead code.

See #247

bora-vmsoft/services/vmtoolsd/pluginMgr.c
  The proposed fix conditionally emitted a log message.  That fix has
  been reworked to consistently emit a log message with conditional
  content.

bora/lib/misc/posixPosix.c
bora-vmsoft/apps/toolbox-cmd/toolboxcmd-shrink.c
  Remove one line of dead code from each source file.

bora-vmsoft/lib/procMgr/procMgrPosix.c:
  Suggested dead code fix actually pointed to a bug where errno
  was not getting updated as intended.

bora-vmsoft/services/plugins/guestInfo/perfMonLinux.c:
  Suggested dead code is no longer dead; change not applicable.
@stanguturi
Copy link
Contributor

The fixes were submitted in f91f735 and 5f3f6cc

@stanguturi stanguturi closed this Sep 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants