OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
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
95
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
...]
/libcore/luni/src/main/java/java/util/zip/
ZipFile.java
318
* <p>This is all a little wobbly. If the wrong value ends up in the
EOCD
324
// have an overall comment (unrelated to any per-entry comments), we'll hit the
EOCD
346
throw new ZipException("
EOCD
not found; not a zip file?");
352
byte[]
eocd
= new byte[18];
353
raf.readFully(
eocd
);
356
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 202 milliseconds