mirror of
https://github.com/verilator/verilator.git
synced 2026-10-08 02:53:12 +02:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user