mirror of
https://github.com/rustsec/advisory-db.git
synced 2026-07-16 00:12:29 -04:00
Fix jxl-grid code snippet
This commit is contained in:
committed by
GitHub
parent
af256cd40c
commit
7c507d4ccc
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user