Lines Matching refs:PEHeaderOffset
1577 unsigned long PEHeaderOffset = (long)buffer[OFFSET_PE_OFFSET]; in normalize_pe_image() local
1578 if (PEHeaderOffset < nBufferSize-4) in normalize_pe_image()
1580 if ( buffer[PEHeaderOffset] == 'P' && in normalize_pe_image()
1581 buffer[PEHeaderOffset+1] == 'E' && in normalize_pe_image()
1582 buffer[PEHeaderOffset+2] == 0 && in normalize_pe_image()
1583 buffer[PEHeaderOffset+3] == 0 ) in normalize_pe_image()
1585 PEHeaderOffset += PE_SIGNATURE_SIZE; in normalize_pe_image()
1586 if (PEHeaderOffset+OFFSET_COFF_TIMEDATESTAMP < nBufferSize-4) in normalize_pe_image()
1591 buffer[PEHeaderOffset+OFFSET_COFF_TIMEDATESTAMP] = 0; in normalize_pe_image()
1592 buffer[PEHeaderOffset+OFFSET_COFF_TIMEDATESTAMP+1] = 0; in normalize_pe_image()
1593 buffer[PEHeaderOffset+OFFSET_COFF_TIMEDATESTAMP+2] = 0; in normalize_pe_image()
1594 buffer[PEHeaderOffset+OFFSET_COFF_TIMEDATESTAMP+3] = 0; in normalize_pe_image()
1597 if (PEHeaderOffset+COFFHEADER_SIZE+OFFSET_PE_OPTIONALHEADER_CHECKSUM < nBufferSize-4) in normalize_pe_image()
1600 buffer[PEHeaderOffset+COFFHEADER_SIZE+OFFSET_PE_OPTIONALHEADER_CHECKSUM] = 0; in normalize_pe_image()
1601 buffer[PEHeaderOffset+COFFHEADER_SIZE+OFFSET_PE_OPTIONALHEADER_CHECKSUM+1] = 0; in normalize_pe_image()
1602 buffer[PEHeaderOffset+COFFHEADER_SIZE+OFFSET_PE_OPTIONALHEADER_CHECKSUM+2] = 0; in normalize_pe_image()
1603 buffer[PEHeaderOffset+COFFHEADER_SIZE+OFFSET_PE_OPTIONALHEADER_CHECKSUM+3] = 0; in normalize_pe_image()