Fixup docs

stream
Dave Vasilevsky 12 years ago
parent 09c60316cf
commit 14f5644bd8

@ -15,7 +15,13 @@ BUGS
* performance lags under IO?
* slow input -> CPUs idle while waiting for input
* safe extraction
* abort if block size exceeded
* sanity checks, from spec:
- CRCs are already tested, i think?
- backward size should match file
- reserved flags must be zero
- header vs footer flags
- uncompressed size field vs actual uncompressed size
- index vs actual blocks
EFFICIENCY
* more efficient indexing: ranges? sorted? mtree?

@ -110,7 +110,6 @@ void pixz_read(bool verify, size_t nspecs, char **specs) {
pipeline_create(block_create, block_free,
gIndex ? read_thread : read_thread_noindex, decode_thread);
if (verify && gFileIndexOffset) {
// FIXME: don't stop on End Of Archive
gArWanted = gWantedFiles;
wanted_t *w = gWantedFiles, *wlast = NULL;
bool lastmulti = false;
@ -439,7 +438,6 @@ static void read_streaming(lzma_block *block) {
}
static void read_index(void) {
// FIXME: verify it matches the blocks?
lzma_stream stream = LZMA_STREAM_INIT;
lzma_index *index;
if (lzma_index_decoder(&stream, &index, MEMLIMIT) != LZMA_OK)
@ -459,7 +457,6 @@ static void read_index(void) {
}
static void read_footer(void) {
// FIXME: compare with header?
lzma_stream_flags stream_flags;
if (rbuf_read(LZMA_STREAM_HEADER_SIZE) != RBUF_FULL)
die("Error reading stream footer");
@ -489,7 +486,6 @@ static void read_thread_noindex(void) {
; // pass
read_index();
read_footer();
// FIXME: don't output the pixz file index! heuristic?
}
if (empty)
die("Empty input");

Loading…
Cancel
Save