Lines Matching full:eocd
173 LOG(ERROR) << "not big enough to contain EOCD";
178 // signature data and length, which includes all of the EOCD except for the comment length field
182 const unsigned char* eocd = addr + length - eocd_size;
184 // If this is really is the EOCD record, it will begin with the magic number $50 $4b $05 $06.
185 if (eocd[0] != 0x50 || eocd[1] != 0x4b || eocd[2] != 0x05 || eocd[3] != 0x06) {
186 LOG(ERROR) << "signature length doesn't match EOCD marker";
191 if (eocd[i] == 0x50 && eocd[i+1] == 0x4b && eocd[i+2] == 0x05 && eocd[i+3] == 0x06) {
195 LOG(ERROR) << "EOCD marker occurs after start of EOCD";
240 const uint8_t* signature = eocd + eocd_size - signature_start;