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

  /bootable/recovery/
verifier.cpp 103 // includes all of the EOCD except for the comment length field (2
107 unsigned char* eocd = (unsigned char*)malloc(eocd_size); local
108 if (eocd == NULL) {
109 LOGE("malloc for EOCD record failed\n");
113 if (fread(eocd, 1, eocd_size, f) != eocd_size) {
114 LOGE("failed to read eocd from %s (%s)\n", path, strerror(errno));
119 // If this is really is the EOCD record, it will begin with the
121 if (eocd[0] != 0x50 || eocd[1] != 0x4b ||
122 eocd[2] != 0x05 || eocd[3] != 0x06)
    [all...]
verifier_test.sh 101 expect_fail fake-eocd.zip
  /frameworks/base/core/java/android/os/
RecoverySystem.java 173 byte[] eocd = new byte[commentSize + 22];
175 raf.readFully(eocd);
179 if (eocd[0] != (byte)0x50 || eocd[1] != (byte)0x4b ||
180 eocd[2] != (byte)0x05 || eocd[3] != (byte)0x06) {
184 for (int i = 4; i < eocd.length-3; ++i) {
185 if (eocd[i ] == (byte)0x50 && eocd[i+1] == (byte)0x4b &&
186 eocd[i+2] == (byte)0x05 && eocd[i+3] == (byte)0x06)
    [all...]
  /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);
  /libcore/luni/src/main/java/java/util/zip/
ZipFile.java 344 * <p>This is all a little wobbly. If the wrong value ends up in the EOCD
350 // have an overall comment (unrelated to any per-entry comments), we'll hit the EOCD
383 byte[] eocd = new byte[ENDHDR - 4];
384 raf.readFully(eocd);
387 BufferIterator it = HeapBufferIterator.iterator(eocd, 0, eocd.length, ByteOrder.LITTLE_ENDIAN);

Completed in 657 milliseconds