HomeSort by relevance Sort by last modified time
    Searched refs:eocd (Results 1 - 5 of 5) sorted by null

  /bootable/recovery/
verifier.cpp 101 // includes all of the EOCD except for the comment length field (2
105 unsigned char* eocd = (unsigned char*)malloc(eocd_size); local
106 if (eocd == NULL) {
107 LOGE("malloc for EOCD record failed\n");
111 if (fread(eocd, 1, eocd_size, f) != eocd_size) {
112 LOGE("failed to read eocd from %s (%s)\n", path, strerror(errno));
117 // If this is really is the EOCD record, it will begin with the
119 if (eocd[0] != 0x50 || eocd[1] != 0x4b ||
120 eocd[2] != 0x05 || eocd[3] != 0x06)
    [all...]
verifier_test.sh 80 expect_fail fake-eocd.zip
  /frameworks/base/core/java/android/os/
RecoverySystem.java 172 byte[] eocd = new byte[commentSize + 22];
174 raf.readFully(eocd);
178 if (eocd[0] != (byte)0x50 || eocd[1] != (byte)0x4b ||
179 eocd[2] != (byte)0x05 || eocd[3] != (byte)0x06) {
183 for (int i = 4; i < eocd.length-3; ++i) {
184 if (eocd[i ] == (byte)0x50 && eocd[i+1] == (byte)0x4b &&
185 eocd[i+2] == (byte)0x05 && eocd[i+3] == (byte)0x06)
    [all...]
  /libcore/luni/src/main/java/java/util/zip/
ZipFile.java 306 * <p>This is all a little wobbly. If the wrong value ends up in the EOCD
338 throw new ZipException("EOCD not found; not a Zip archive?");
344 byte[] eocd = new byte[18];
345 mRaf.readFully(eocd);
348 BufferIterator it = HeapBufferIterator.iterator(eocd, 0, eocd.length, ByteOrder.LITTLE_ENDIAN);
  /system/core/libzipfile/
centraldir.c 38 fprintf(stderr, " Zip EOCD: expected >= %d bytes, found %d\n",
53 fprintf(stderr, "EOCD(%d) + comment(%d) exceeds len (%d)\n",
176 * This is all a little wobbly. If the wrong value ends up in the EOCD
187 const unsigned char* eocd; local
208 eocd = p;
214 fprintf(stderr, "EOCD not found, not Zip\n");
218 // extract eocd values
219 err = read_central_dir_values(file, eocd, (buf+bufsize)-eocd);

Completed in 176 milliseconds