Files
6gbvram---16gb-ram/crates
9hvn9yt2vk-netizen 2ad0a1ef74 texture: refuse extents past 16384 texels instead of overflowing
Layout::new checked that width, height and depth are non-zero but not that
they are bounded, so values a title passes unchecked (up to u32::MAX)
overflowed the size arithmetic: `offset * depth` in the linear layout,
`slice_size * slices` and the per-mip sizes in the tiled one, and a u32
next_multiple_of in Layout::tiled. Debug builds panicked; release builds
wrapped silently and returned a wrong size.

Refuse anything past 16384 texels per side, the most a GFX10 image
descriptor holds, so no texture the GPU can use is affected.

Found with a random-input harness (four distinct overflow sites, none left
after this change).
2026-11-24 00:08:59 +01:00
..
2026-11-23 01:15:26 +01:00
2026-11-23 01:15:26 +01:00