adb01b286d
Important vendor bugfixes (relevant to FreeBSD): #747: Out of bounds read in mtree parser #761: heap-based buffer overflow in read_Header (7-zip) #784: Invalid file on bsdtar command line results in internal errors (1) PR: 213092 (1) Obtained from: https://github.com/libarchive/libarchive
"minitar" is a minimal example of a program that uses libarchive to read/write various archive formats. It's a more ambitious version of 'untar.c' that includes compile-time options to enable/disable various features, including non-tar formats, archive creation, and automatic decompression support. I use this as a test bed to check for "link pollution," ensuring that a program using libarchive does not pull in unnecessary code. The "minitar" program is also a good starting point for anyone who wants to use libarchive for their own purposes, as it demonstrates basic usage of the library.