Page MenuHomeFreeBSD

bhyve: Make sure that the VNC version is initialized
ClosedPublic

Authored by markj on Oct 25 2022, 3:30 PM.
Tags
None
Referenced Files
F139466481: D37117.id112252.diff
Fri, Dec 12, 10:18 AM
F139440441: D37117.id112185.diff
Fri, Dec 12, 3:04 AM
Unknown Object (File)
Wed, Dec 10, 7:43 PM
Unknown Object (File)
Tue, Dec 9, 1:42 AM
Unknown Object (File)
Fri, Nov 28, 10:38 PM
Unknown Object (File)
Fri, Nov 21, 9:33 PM
Unknown Object (File)
Wed, Nov 19, 8:54 AM
Unknown Object (File)
Nov 12 2025, 6:19 AM

Details

Summary

clang warned that "client_ver" can be left uninitialized. This change
causes the new connection to be dropped if a version string is not
presented.

MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 47987
Build 44874: arc lint + arc unit

Event Timeline

markj requested review of this revision.Oct 25 2022, 3:30 PM
corvink added inline comments.
usr.sbin/bhyve/rfb.c
888–896

What do you think about my suggestion? It avoids nested ifs.

markj added inline comments.
usr.sbin/bhyve/rfb.c
888–896

Thanks, that is better than what I did.

markj marked an inline comment as done.

Restructure to reduce nesting.

rew added inline comments.
usr.sbin/bhyve/rfb.c
891

looks like this got crossed up on the previous update

This revision is now accepted and ready to land.Oct 26 2022, 9:32 PM