X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=src%2Fmodel%2Fcheck.c;h=dd5e8eb90b0172a335d3d46625c6544ebc7f815f;hb=6e4cbafe0876ff14ff03a14ab80951167ef67e06;hp=cd45f2d3ff9b9d15696203f5a8f75015f94d7cc0;hpb=c4d9a1aaf7c25e45adcaaebc970429f2c61bf6e9;p=centaur.git diff --git a/src/model/check.c b/src/model/check.c index cd45f2d..dd5e8eb 100644 --- a/src/model/check.c +++ b/src/model/check.c @@ -69,7 +69,7 @@ int elfu_modelCheck(ElfuElf *me) /* Check for overlapping sections */ for (i = 0; i < numSecs - 1; i++) { - if (sortedSecs[i]->shdr.sh_offset + elfu_scnSizeFile(&sortedSecs[i]->shdr) + if (sortedSecs[i]->shdr.sh_offset + elfu_gScnSizeFile(&sortedSecs[i]->shdr) > sortedSecs[i+1]->shdr.sh_offset) { fprintf(stderr, "elfu_check: Found overlapping sections: %s and %s.\n", elfu_modelScnName(me, sortedSecs[i]), @@ -90,7 +90,7 @@ int elfu_modelCheck(ElfuElf *me) /* Check for sections overlapping with PHDRs */ for (i = 0; i < numSecs; i++) { if (isOverlapping(sortedSecs[i]->shdr.sh_offset, - elfu_scnSizeFile(&sortedSecs[i]->shdr), + elfu_gScnSizeFile(&sortedSecs[i]->shdr), me->ehdr.e_phoff, me->ehdr.e_phentsize * me->ehdr.e_phnum)) { fprintf(stderr, "elfu_check: Found section overlapping with PHDRs: %s.\n",