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
F173383130: D37117.id112252.diff
Fri, Sep 25, 2:36 PM
F173369191: D37117.id112235.diff
Fri, Sep 25, 12:20 PM
F173368892: D37117.id112209.diff
Fri, Sep 25, 12:17 PM
F173368176: D37117.id112185.diff
Fri, Sep 25, 12:09 PM
Unknown Object (File)
Wed, Sep 23, 11:11 PM
Unknown Object (File)
Wed, Sep 23, 3:06 AM
Unknown Object (File)
Thu, Sep 17, 8:02 PM
Unknown Object (File)
Mon, Sep 14, 6:21 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