Guest User

Untitled

a guest
Feb 20th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. // figure out the boundaries between coff sections
  2.  
  3. // make sure the sections are contiguous and start at page 0
  4. numPages = 0;
  5. for (int s=0; s<coff.getNumSections(); s++) {
  6. CoffSection section = coff.getSection(s);
  7. if (section.getFirstVPN() != numPages) {
  8. coff.close();
  9. Lib.debug(dbgProcess, "\tfragmented executable");
  10. return false;
  11. }
  12. numPages += section.getLength();
  13. }
Add Comment
Please, Sign In to add comment