From be2598be0058b5f13f3d0db8bb9d3d15d9c5aebf Mon Sep 17 00:00:00 2001 From: arshiya tabasum Date: Tue, 21 Jul 2026 13:34:15 +0530 Subject: [PATCH] check target bounds in phonet '^^' rule handling --- modules/speller/default/phonet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/speller/default/phonet.cpp b/modules/speller/default/phonet.cpp index 281aed44..a401f1a9 100644 --- a/modules/speller/default/phonet.cpp +++ b/modules/speller/default/phonet.cpp @@ -408,7 +408,7 @@ namespace aspeller { c = *s; if (parms.rules[n][0] != '\0' && strstr (parms.rules[n]+1, "^^") != NULL) { - if (c != '\0') { + if (c != '\0' && j < len) { target[j] = c; j++; }