We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 39cb314 + b35bf1c commit d00ce6fCopy full SHA for d00ce6f
src/cpdetect/heuristics/pe_heuristics.cpp
@@ -937,7 +937,7 @@ void PeHeuristics::getUpxHeuristics()
937
// format: x.xx'\0'UPX!
938
const std::size_t minPos = 5, verLen = 4;
939
pos = content.find("UPX!");
940
- if (pos >= minPos && pos < 0x500 && pos < sections[0]->getOffset())
+ if (pos >= minPos && pos < 0x500 && !sections.empty() && pos < sections[0]->getOffset())
941
{
942
std::string version;
943
std::size_t num;
0 commit comments