Skip to content
Browse files

Do not fail finding opd if the toc is more than 0x10000 bytes long an…

…d there are two or more tocs
  • Loading branch information...
1 parent a6e7f17 commit 0fca6f97801a2cc7bab4659eef913583891e8ded @kakaroto committed Feb 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 analyze_self.idc
View
2 analyze_self.idc
@@ -16,7 +16,7 @@ static FindOpd() {
found_seg = 0;
for (seg = FirstSeg(); found_seg == 0 && NextSeg(seg) != seg; seg = NextSeg(seg)) {
- for (ea = SegStart(seg); ea + 8 < SegEnd(seg); ea = ea + 8) {
+ for (ea = SegStart(seg); ea + 8 < SegEnd(seg) && ea < SegStart(seg) + 0x1000; ea = ea + 8) {
toc = Dword(ea + 0x04);
next_toc = Dword(ea + 0x0C);
if (toc == 0 || toc == 0xFFFFFFFF || toc != next_toc) {

0 comments on commit 0fca6f9

Please sign in to comment.
Something went wrong with that request. Please try again.