MCPcopy Index your code
hub / github.com/ELMERIKH/PyinMemoryPE / adjust_SectionAlignment

Method adjust_SectionAlignment

pythonmemorymodule/pefile.py:7400–7412  ·  view source on GitHub ↗
(self, val, section_alignment, file_alignment)

Source from the content-addressed store, hash-verified

7398 # architecture."
7399 #
7400 def adjust_SectionAlignment(self, val, section_alignment, file_alignment):
7401 if file_alignment < FILE_ALIGNMENT_HARDCODED_VALUE:
7402 if (
7403 file_alignment != section_alignment
7404 and self.SectionAlignment_Warning is False
7405 ):
7406 self.__warnings.append(
7407 "If FileAlignment(%x) < 0x200 it should equal SectionAlignment(%x)"
7408 % (file_alignment, section_alignment)
7409 )
7410 self.SectionAlignment_Warning = True
7411
7412 return cache_adjust_SectionAlignment(val, section_alignment, file_alignment)
7413
7414
7415def main():

Callers 4

parse_sectionsMethod · 0.95
get_rva_from_offsetMethod · 0.95

Calls 1

Tested by

no test coverage detected