Skip to content

Commit

Permalink
Merge pull request DediProgSW#47 from caveh-g/cj-fixes
Browse files Browse the repository at this point in the history
Fix array indexing in Condense()
  • Loading branch information
DediprogEvy authored Feb 14, 2022
2 parents bf9a2f4 + af1db20 commit f01478a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project.c
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ size_t Condense(uintptr_t* out, unsigned char* vc, uintptr_t* addrs, size_t addr
for (j = 0; j < addrSize; j++) {
for (i = addrs[j] - baseAddr; i < (addrs[j] - baseAddr + step); i++) {
if (vc[i] != 0xFF) {
out[j] = addrs[j];
out[outSize] = addrs[j];
outSize++;
break;
}
Expand Down

0 comments on commit f01478a

Please sign in to comment.