summaryrefslogtreecommitdiffhomepage
path: root/src/wall-atlas.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-12-11 05:29:39 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-12-11 05:29:39 +0100
commitcde53a4dab421bbc5da22029571b1e2b5ad476a5 (patch)
tree330983bd9e5d582cc0f07ffb98415fb38974959c /src/wall-atlas.cpp
parent999e720d2f6578eb1f8e83872985bf1961c78aa9 (diff)
w
Diffstat (limited to 'src/wall-atlas.cpp')
-rw-r--r--src/wall-atlas.cpp3
1 files changed, 3 insertions, 0 deletions
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]]