You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git clone --depth=1 --single-branch https://github.com/stedolan/jq
tar -cf jq.tar -- jq
t2sz -vfo jq.tar.zst -- jq.tar
+ <null># END OF BLOCK (512)
+ <null># END OF BLOCK (512)munmap_chunk(): invalid pointer
[1] 164384 abort (core dumped) t2sz -vfo jq.tar.zst -- jq.tar
# OR:(sometimes): free(): invalid pointer
──────
(gdb) bt
#0 0x00007ffff7d2eef5 in raise () from /usr/lib/libc.so.6
#1 0x00007ffff7d18862 in abort () from /usr/lib/libc.so.6
#2 0x00007ffff7d70f38 in __libc_message () from /usr/lib/libc.so.6
#3 0x00007ffff7d78bea in malloc_printerr () from /usr/lib/libc.so.6
#4 0x00007ffff7d7901c in munmap_chunk () from /usr/lib/libc.so.6
#5 0x00007ffff7d7dcdb in free () from /usr/lib/libc.so.6
#6 0x00005555555552bc in main (argc=<optimized out>, argv=<optimized out>) at /home/user/.cache/aurutils/airy/t2sz-git/src/t2sz/src/t2sz.c:372
──────
(gdb) f 6
#6 0x00005555555552bc in main (argc=<optimized out>, argv=<optimized out>) at /home/user/.cache/aurutils/airy/t2sz-git/src/t2sz/src/t2sz.c:372
372 free(ctx->outFilename);
──────
(gdb) l
367 }
368 }
369
370 compressFile(ctx);
371
372 free(ctx->outFilename);
373 free(ctx);
374
375 return 0;
376 }
──────
(gdb)
==167002== Invalid free() / delete / delete[] / realloc()
==167002== at 0x483F9AB: free (vg_replace_malloc.c:538)
==167002== by 0x1092BB: main (t2sz.c:372)
==167002== Address 0x1fff000109 is on thread 1's stack
The text was updated successfully, but these errors were encountered:
The problem is fixed. There was an unnecessary attempt to free a pointer at the end of the program.
All archives produced with previous version are ok.
A new release will be published soon.
Thanks @amerlyq for reporting this.
The text was updated successfully, but these errors were encountered: