You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This fixes critical bugs in the Linux framebuffer backend:
1. BPP crash prevention
- Return false instead of break for unsupported bits per pixel
- Prevents array out-of-bounds access in put_span table
2. Damage callback logic
- Fix inverted condition that prevented screen updates
- !tx->vt_active && MAP_FAILED → tx->vt_active && != MAP_FAILED
- Enables all rendering when VT is active
3. VT restoration in error path
- Restore VT mode before closing fd on init failure
- Prevents blank TTY after failed initialization
4. Poll function registration (lines 350-353, 376)
- Add twin_fbdev_poll() stub for dispatch compatibility
Tested-on: lima ARM64 Linux (virtio_gpudrmfb 1280x800@32bpp)
0 commit comments