Edit

IABSD.fr/ports/archivers/pixz/patches

Branch :

  • Show log

    Commit

  • Author : tb
    Date : 2024-04-23 22:36:32
    Hash : 38d305cd
    Message : import archivers/pixz, ok sthen The existing XZ Utils provide great compression in the .xz file format, but they produce just one big block of compressed data. Pixz instead produces a collection of smaller blocks which makes random access to the original data possible. This is especially useful for large tarballs. from Kirill A. Korinsky with tweaks by sthen and me

  • patch-src_write_c
  • https://github.com/vasi/pixz/commit/2f4db115586bd3d98c1f05eb64c125495bf0331a
    
    Index: src/write.c
    --- src/write.c.orig
    +++ src/write.c
    @@ -448,7 +448,7 @@ static void write_block(pipeline_item_t *pi) {
     static void encode_index(void) {
         if (lzma_index_encoder(&gStream, gIndex) != LZMA_OK)
             die("Error creating index encoder");
    -    uint8_t obuf[CHUNKSIZE];
    +    uint8_t obuf[CHUNKSIZE] = {};
         lzma_ret err = LZMA_OK;
         while (err != LZMA_STREAM_END) {
             gStream.next_out = obuf;
    @@ -513,7 +513,7 @@ static void write_file_index_bytes(size_t size, uint8_
     }
     
     static void write_file_index_buf(lzma_action action) {
    -    uint8_t obuf[CHUNKSIZE];
    +    uint8_t obuf[CHUNKSIZE] = {};
         gStream.avail_in = gFileIndexBufPos;
         gStream.next_in = gFileIndexBuf;
         lzma_ret err = LZMA_OK;