Skip to content

Commit

Permalink
Try to fix issue avast#637
Browse files Browse the repository at this point in the history
Reference: avast#637
  • Loading branch information
seviezhou authored Sep 9, 2019
1 parent 63f03e7 commit c517d07
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/bin2llvmir/optimizations/decoder/ir_modifications.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,9 @@ bool Decoder::canSplitFunctionOn(
continue;
}
auto up = fncStarts.upper_bound(bAddr);
if (up == fncStarts.begin()) {
return false;
}
--up;
Address bFnc = *up;

Expand All @@ -442,6 +445,9 @@ bool Decoder::canSplitFunctionOn(
continue;
}
auto up = fncStarts.upper_bound(pAddr);
if (up == fncStarts.begin()) {
return false;
}
--up;
Address pFnc = *up;

Expand Down

0 comments on commit c517d07

Please sign in to comment.