From cde53a4dab421bbc5da22029571b1e2b5ad476a5 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 11 Dec 2023 05:29:39 +0100 Subject: w --- src/wall-atlas.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/wall-atlas.cpp b/src/wall-atlas.cpp index a0dceac5..bb9013fd 100644 --- a/src/wall-atlas.cpp +++ b/src/wall-atlas.cpp @@ -83,7 +83,10 @@ wall_atlas::wall_atlas(wall_atlas_def def, String path, const ImageView2D& img) fm_soft_assert(G.index < frame_count && G.index + G.count <= frame_count); const auto size = expected_size(_info.depth, gr); for (const auto& frame : ArrayView { &_frame_array[G.index], G.count }) + { fm_soft_assert(frame.size == size); + fm_soft_assert(frame.offset + frame.size <= _image_size); + } } } if (!found) [[unlikely]] -- cgit v1.2.3