fix: Crash when searching for an empty string
This commit is contained in:
parent
de2458f72d
commit
a2443b26f7
@ -133,7 +133,7 @@ namespace hex::plugin::builtin {
|
||||
searchSequence.clear();
|
||||
std::copy(this->m_input.begin(), this->m_input.end(), std::back_inserter(searchSequence));
|
||||
|
||||
if (searchSequence.back() == 0x00)
|
||||
if (!searchSequence.empty() && searchSequence.back() == 0x00)
|
||||
searchSequence.pop_back();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user