From f590bd2b731a1fb59d19c5db05b099282a358fe7 Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Wed, 26 Jun 2024 20:17:33 +0300 Subject: [PATCH] persistent: fix selection geometry validation --- src/persistent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/persistent.c b/src/persistent.c index e975522..d2b838d 100644 --- a/src/persistent.c +++ b/src/persistent.c @@ -62,7 +62,7 @@ void dp_persistent_load(struct dp_state *state) { } 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); return; }