Fix infinite loop in VString::replaceSubstr

If the replaced string was a suffix of the replacement, we used to get
an infinite loop.
This commit is contained in:
Geza Lore
2025-08-05 14:41:38 +01:00
parent 2c41a7bbf6
commit 25d968b833
3 changed files with 12 additions and 4 deletions
+1
View File
@@ -692,6 +692,7 @@ static bool verilate(const string& argString) {
if (v3Global.opt.debugSelfTest()) {
V3Os::selfTest();
V3Number::selfTest();
VString::selfTest();
VHashSha256::selfTest();
VSpellCheck::selfTest();
V3Graph::selfTest();