https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246964
Bug ID: 246964
Summary: bhyve usb_mouse SIGSEGV on null pointer dereference
Product: Base System
Version: 12.1-RELEASE
Hardware: amd64
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: bhyve
Assignee: [email protected]
Reporter: [email protected]
Created attachment 215206
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=215206&action=edit
Fix null pointer dereference in usb_mouse
By chance when I was running 'supportconfig' on a openSUSE 15.1 guest under
bhyve, it crashes with SIGSEGV. Debugging and checking the code revealed the
problem.
usb_mouse.c:538 eshort = data->blen > 0;
the data pointer above is accessed while being null. Attached is a trivial
patch that fixes the issue for me.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
To unsubscribe, send any mail to
"[email protected]"