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
{{ message }}
Repository navigation
fix(render): unbounded headless surface allocation in gpu.rs (CR-RENDER-01) #345
bitty-render/src/gpu.rs headless present_draw_list (and headless_present) allocate w*h*4 bytes with unchecked as usize arithmetic, so extreme extents OOM the host.
Remediation
Checked arithmetic against MAX_SURFACE_BYTES (64 MiB), mirroring software.rs (SurfaceRgba::try_new). Fail closed with RenderError::InvalidInput before any allocation.
Acceptance criteria
Extreme extents (e.g. 5000x5000, u32::MAX x u32::MAX) fail closed with InvalidInput; no allocation occurs.
Normal frames (e.g. 640x384, 800x600) present unchanged.
Activity