← Commit list

10c0e9178

Denys Vlasenko
Denys Vlasenko
2016-06-21
SUCCESS Duration: 220s

Subject

libarchive: fix xmalloc_open_zipped_read_close()

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

archival/libarchive/open_transformer.c+3 -0
@@ -331,6 +331,9 @@ void* FAST_FUNC xmalloc_open_zipped_read_close(const char *fname, size_t *maxsz_
}
} else {
/* File is not compressed */
+//FIXME: avoid seek
+ xlseek(xstate->src_fd, - xstate->signature_skipped, SEEK_CUR);
+ xstate->signature_skipped = 0;
image = xmalloc_read(xstate->src_fd, maxsz_p);
}