mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
fix: Crash when searching for an empty string
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user