Searched refs:cenpos (Results 1 - 5 of 5) sorted by relevance

/openjdk7/jdk/test/java/util/zip/ZipFile/
H A DCorruptedZipFiles.java66 int cenpos = u16(good, endpos+ENDOFF);
67 int locpos = u16(good, cenpos+CENOFF);
69 if (u32(good, cenpos) != CENSIG) fail("Where's CENSIG?");
71 if (u16(good, locpos+LOCNAM) != u16(good,cenpos+CENNAM))
73 if (u16(good, locpos+LOCEXT) != u16(good,cenpos+CENEXT))
90 bad[cenpos]++;
95 bad[cenpos+CENFLG] |= 1;
100 bad[cenpos+CENNAM]++;
105 bad[cenpos+CENNAM]--;
110 bad[cenpos
[all...]
/openjdk7/jdk/test/tools/launcher/6842838/
H A DCreateBadJar.java91 int cenpos = u16(good, endpos+ENDOFF);
92 if (u32(good, cenpos) != CENSIG) throw new RuntimeException("Where's CENSIG?");
98 int pos = findInCEN(bad, cenpos, entryName);
126 static int findInCEN(byte[] bytes, int cenpos, String entryName) { argument
127 int pos = cenpos;
/openjdk7/jdk/src/share/native/java/util/zip/
H A Dzip_util.c287 jlong cenpos = endpos - ENDSIZ(endbuf); local
288 jlong locpos = cenpos - ENDOFF(endbuf);
290 return (cenpos >= 0 &&
292 readFullyAt(zip->zfd, buf, sizeof(buf), cenpos) != -1 &&
547 jlong endpos, end64pos, cenpos, cenlen, cenoff; local
589 cenpos = endpos - cenlen;
593 zip->locpos = cenpos - cenoff;
613 if (cenpos > pagesize) {
614 offset = cenpos & ~(pagesize - 1);
625 zip->mlen = cenpos
929 readCENHeader(jzfile *zip, jlong cenpos, jint bufsize) argument
950 sequentialAccessReadCENHeader(jzfile *zip, jlong cenpos) argument
[all...]
H A Dzip_util.h181 jlong cenpos; /* Offset of central directory file header */ member in struct:jzcell
/openjdk7/jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs/
H A DZipFileSystem.java1039 long cenpos = end.endpos - end.cenlen; // position of CEN table
1043 locpos = cenpos - end.cenoff;
1049 if (readFullyAt(cen, 0, cen.length, cenpos) != end.cenlen + ENDHDR) {

Completed in 50 milliseconds