Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // figure out the boundaries between coff sections
- // make sure the sections are contiguous and start at page 0
- numPages = 0;
- for (int s=0; s<coff.getNumSections(); s++) {
- CoffSection section = coff.getSection(s);
- if (section.getFirstVPN() != numPages) {
- coff.close();
- Lib.debug(dbgProcess, "\tfragmented executable");
- return false;
- }
- numPages += section.getLength();
- }
Add Comment
Please, Sign In to add comment