Lines Matching refs:buffer
47 void normalize_pe_image(sal_uInt8* buffer, size_t nBufferSize) in normalize_pe_image() argument
56 if (buffer[0] == sal_uInt8('M') && buffer[1] == sal_uInt8('Z')) in normalize_pe_image()
58 unsigned long PEHeaderOffset = (long)buffer[OFFSET_PE_OFFSET]; in normalize_pe_image()
61 if ( buffer[PEHeaderOffset+0] == sal_uInt8('P') && in normalize_pe_image()
62 buffer[PEHeaderOffset+1] == sal_uInt8('E') && in normalize_pe_image()
63 buffer[PEHeaderOffset+2] == 0 && in normalize_pe_image()
64 buffer[PEHeaderOffset+3] == 0 ) in normalize_pe_image()
72 buffer[PEHeaderOffset+OFFSET_COFF_TIMEDATESTAMP+0] = 0; in normalize_pe_image()
73 buffer[PEHeaderOffset+OFFSET_COFF_TIMEDATESTAMP+1] = 0; in normalize_pe_image()
74 buffer[PEHeaderOffset+OFFSET_COFF_TIMEDATESTAMP+2] = 0; in normalize_pe_image()
75 buffer[PEHeaderOffset+OFFSET_COFF_TIMEDATESTAMP+3] = 0; in normalize_pe_image()
81 buffer[PEHeaderOffset+COFFHEADER_SIZE+OFFSET_PE_OPTIONALHEADER_CHECKSUM] = 0; in normalize_pe_image()
82 buffer[PEHeaderOffset+COFFHEADER_SIZE+OFFSET_PE_OPTIONALHEADER_CHECKSUM+1] = 0; in normalize_pe_image()
83 buffer[PEHeaderOffset+COFFHEADER_SIZE+OFFSET_PE_OPTIONALHEADER_CHECKSUM+2] = 0; in normalize_pe_image()
84 buffer[PEHeaderOffset+COFFHEADER_SIZE+OFFSET_PE_OPTIONALHEADER_CHECKSUM+3] = 0; in normalize_pe_image()
108 sal_uInt8 buffer[BUFFER_SIZE]; in calc_md5_checksum() local
112 0 != (nBytesRead = fread( buffer, 1, sizeof(buffer), fp )) ) in calc_md5_checksum()
117 if (nBytesRead >= MINIMAL_SIZE && buffer[0] == sal_uInt8('M') && buffer[1] == sal_uInt8('Z') ) in calc_md5_checksum()
118 normalize_pe_image(buffer, nBytesRead); in calc_md5_checksum()
121 error = rtl_digest_updateMD5( digest, buffer, nBytesRead ); in calc_md5_checksum()