Skip to content

Commit

Permalink
fix for XRPLF#28
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardAH committed Feb 20, 2023
1 parent 197bde6 commit 272d533
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/ripple/app/hook/impl/applyHook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3903,16 +3903,13 @@ inline
bool
overlapping_memory(std::vector<uint64_t> regions)
{
for (uint64_t i = 0; i < regions.size(); i+= 2)
for (uint64_t i = 0; i < regions.size() - 2; i+= 2)
{
uint64_t a = regions[i + 0];
uint64_t b = regions[i + 1];

for (uint64_t j = 0; j < regions.size(); j+= 2)
for (uint64_t j = i + 2; j < regions.size(); j+= 2)
{
if (j == i)
continue;

uint64_t c = regions[j + 0];
uint64_t d = regions[j + 1];

Expand Down

0 comments on commit 272d533

Please sign in to comment.