mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +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:
@@ -143,6 +143,8 @@ public:
|
||||
static string aOrAn(const string& word) { return aOrAn(word.c_str()); }
|
||||
// Hash the string
|
||||
static uint64_t hashMurmur(const string& str) VL_PURE;
|
||||
|
||||
static void selfTest(); // Test this class
|
||||
};
|
||||
|
||||
//######################################################################
|
||||
|
||||
Reference in New Issue
Block a user