Home | History | Annotate | Download | only in minzip

Lines Matching full:filenamelen

93     LOGI(" %p '%.*s'\n", pEntry->fileName,pEntry->fileNameLen,pEntry->fileName);
109 if (entry1->fileNameLen != entry2->fileNameLen)
110 return entry1->fileNameLen - entry2->fileNameLen;
111 return memcmp(entry1->fileName, entry2->fileName, entry1->fileNameLen);
125 if (entry->fileNameLen != nameLen)
126 return entry->fileNameLen - nameLen;
148 unsigned int itemHash = computeHash(pEntry->fileName, pEntry->fileNameLen);
155 found->fileNameLen, found->fileName);
160 static int validFilename(const char *fileName, unsigned int fileNameLen)
163 if (fileNameLen >= PATH_MAX) {
164 LOGW("Filename too long (%d chatacters)\n", fileNameLen);
170 for (i = 0; i < fileNameLen; ++i) {
251 unsigned int fileNameLen, extraLen, commentLen, localHdrOffset;
265 fileNameLen = get2LE(ptr + CENNAM);
269 if (fileName + fileNameLen > (const char*)pMap->addr + pMap->length) {
273 if (!validFilename(fileName, fileNameLen)) {
293 if (pArchive->pEntries[mid].fileNameLen < fileNameLen) {
294 diffLen = pArchive->pEntries[mid].fileNameLen;
296 diffLen = fileNameLen;
301 diff = pArchive->pEntries[mid].fileNameLen - fileNameLen;
332 // i, localHdrOffset, fileNameLen, extraLen, commentLen);
334 pEntry->fileNameLen = fileNameLen;
391 ptr += CENHDR + fileNameLen + extraLen + commentLen;
728 pEntry->fileNameLen, pEntry->fileName, crc, pEntry->crc32);
873 pEntry->fileNameLen - helper->zipDirLen + 1;
903 pEntry->fileNameLen - helper->zipDirLen);
904 epath += pEntry->fileNameLen - helper->zipDirLen;
991 if (pEntry->fileNameLen < zipDirLen) {
1031 pEntry->fileNameLen, pEntry->fileName);
1047 if (pEntry->fileName[pEntry->fileNameLen-1] == '/') {