1
0
mirror of https://codeberg.org/vyivel/dulcepan/ synced 2025-12-17 23:55:12 +02:00

persistent: fix selection geometry validation

This commit is contained in:
Kirill Primak
2024-06-26 20:17:33 +03:00
parent 5babf54a32
commit f590bd2b73

View File

@@ -62,7 +62,7 @@ void dp_persistent_load(struct dp_state *state) {
} }
if (x < 0 || y < 0 || x + width > selection_output->transformed_width || if (x < 0 || y < 0 || x + width > selection_output->transformed_width ||
y + height >= selection_output->transformed_height) { y + height > selection_output->transformed_height) {
dp_log_error("Persistent state: invalid selection geometry", name); dp_log_error("Persistent state: invalid selection geometry", name);
return; return;
} }