Page MenuHomeFreeBSD

bhyve: Check rfb length
Needs ReviewPublic

Authored by aokblast on Mon, May 18, 7:17 AM.

Details

Reviewers
markj
Group Reviewers
bhyve
Summary

RFB protocol preallocate the buffer memory based on the maximum width
and height that defined by rfb.c. However, the rfb doesn't know the
width and height information from the caller (pci_fbuf.c). It causes
problem while fbuf allows larger size than rfb. As a result, we add
checks by passing width and height parameters to the rfb_init.

Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 73182
Build 70065: arc lint + arc unit