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
F167750929: D37117.id.diff
Mon, Aug 24, 6:55 AM
F167725110: D37117.id112185.diff
Mon, Aug 24, 1:21 AM
Unknown Object (File)
Thu, Aug 20, 2:22 AM
Unknown Object (File)
Tue, Aug 18, 6:09 PM
Unknown Object (File)
Tue, Aug 11, 8:04 PM
Unknown Object (File)
Sun, Aug 9, 10:59 PM
Unknown Object (File)
Sun, Aug 9, 7:26 PM
Unknown Object (File)
Sat, Aug 1, 9:52 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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

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

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

markj added inline comments.
usr.sbin/bhyve/rfb.c
887–897

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
890

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