Fix jxl-grid code snippet

This commit is contained in:
Sergey "Shnatsel" Davidoff
2026-05-29 19:11:53 +01:00
committed by GitHub
parent af256cd40c
commit 7c507d4ccc

View File

@@ -34,8 +34,8 @@ mod miri_ub {
#[test]
fn aligned_grid_dimension_product_overflows() {
let width = usize::MAX / 2 + 1;
id = "RUSTSEC-2026-0151"
id = "RUSTSEC-2026-0151"
let mut grid = AlignedGrid::<u8>::with_alloc_tracker(width, 2, None).unwrap();
let mut subgrid = grid.as_subgrid_mut();
*subgrid.get_mut(0, 1) = 1;
std::hint::black_box(grid);
}