Package: squashfs-tools / 1:4.4-2+deb11u2

Metadata

Package Version Patches format
squashfs-tools 1:4.4-2+deb11u2 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0001 kfreebsd.patch | (download)

squashfs-tools/gzip_wrapper.h | 2 1 + 1 - 0 !
squashfs-tools/lz4_wrapper.h | 2 1 + 1 - 0 !
squashfs-tools/lzo_wrapper.h | 2 1 + 1 - 0 !
squashfs-tools/mksquashfs.c | 4 2 + 2 - 0 !
squashfs-tools/read_fs.c | 2 1 + 1 - 0 !
squashfs-tools/read_xattrs.c | 2 1 + 1 - 0 !
squashfs-tools/swap.c | 2 1 + 1 - 0 !
squashfs-tools/unsquashfs.c | 2 1 + 1 - 0 !
squashfs-tools/unsquashfs.h | 2 1 + 1 - 0 !
squashfs-tools/xz_wrapper.h | 2 1 + 1 - 0 !
10 files changed, 11 insertions(+), 11 deletions(-)

 fixes ftbfs on kfreebsd (closes: #557174).
0002 fix_GCC10_FTBFS.patch | (download)

squashfs-tools/mksquashfs.h | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 [patch] squashfs-tools: fix build failure against gcc-10
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

On gcc-10 (and gcc-9 -fno-common) build fails as:

```
cc ... -o mksquashfs
ld: read_fs.o:(.bss+0x0):
  multiple definition of `fwriter_buffer'; mksquashfs.o:(.bss+0x400c90): first defined here
ld: read_fs.o:(.bss+0x8):
  multiple definition of `bwriter_buffer'; mksquashfs.o:(.bss+0x400c98): first defined here
```

gcc-10 will change the default from -fcommon to fno-common:
https://gcc.gnu.org/PR85678.

The error also happens if CFLAGS=-fno-common passed explicitly.

Reported-by: Toralf Frster
Bug: https://bugs.gentoo.org/706456
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

0003 CVE 2021 40153.patch | (download)

squashfs-tools/Makefile | 5 4 + 1 - 0 !
squashfs-tools/unsquash-1.c | 9 8 + 1 - 0 !
squashfs-tools/unsquash-1234.c | 58 58 + 0 - 0 !
squashfs-tools/unsquash-2.c | 9 8 + 1 - 0 !
squashfs-tools/unsquash-3.c | 9 8 + 1 - 0 !
squashfs-tools/unsquash-4.c | 9 8 + 1 - 0 !
squashfs-tools/unsquashfs.h | 5 4 + 1 - 0 !
7 files changed, 98 insertions(+), 6 deletions(-)

---
0004 unsquashfs use squashfs_closedir to delete directory.patch | (download)

squashfs-tools/unsquash-1.c | 3 1 + 2 - 0 !
squashfs-tools/unsquash-1234.c | 11 9 + 2 - 0 !
squashfs-tools/unsquash-2.c | 3 1 + 2 - 0 !
squashfs-tools/unsquash-3.c | 3 1 + 2 - 0 !
squashfs-tools/unsquash-4.c | 3 1 + 2 - 0 !
squashfs-tools/unsquashfs.c | 7 0 + 7 - 0 !
squashfs-tools/unsquashfs.h | 1 1 + 0 - 0 !
7 files changed, 14 insertions(+), 17 deletions(-)

 unsquashfs: use squashfs_closedir() to delete directory
0005 unsquashfs dynamically allocate name.patch | (download)

squashfs-tools/unsquash-1.c | 2 1 + 1 - 0 !
squashfs-tools/unsquash-1234.c | 5 5 + 0 - 0 !
squashfs-tools/unsquash-2.c | 2 1 + 1 - 0 !
squashfs-tools/unsquash-3.c | 2 1 + 1 - 0 !
squashfs-tools/unsquash-4.c | 2 1 + 1 - 0 !
squashfs-tools/unsquashfs.h | 2 1 + 1 - 0 !
6 files changed, 10 insertions(+), 5 deletions(-)

 unsquashfs: dynamically allocate name
0006 unsquashfs use linked list to store directory names.patch | (download)

squashfs-tools/unsquash-1.c | 32 17 + 15 - 0 !
squashfs-tools/unsquash-1234.c | 12 8 + 4 - 0 !
squashfs-tools/unsquash-2.c | 32 17 + 15 - 0 !
squashfs-tools/unsquash-3.c | 32 17 + 15 - 0 !
squashfs-tools/unsquash-4.c | 32 17 + 15 - 0 !
squashfs-tools/unsquashfs.c | 16 10 + 6 - 0 !
squashfs-tools/unsquashfs.h | 3 2 + 1 - 0 !
7 files changed, 88 insertions(+), 71 deletions(-)

 unsquashfs: use linked list to store directory names
0007 Unsquashfs additional write outside destination dire.patch | (download)

squashfs-tools/Makefile | 6 4 + 2 - 0 !
squashfs-tools/unsquash-1.c | 6 6 + 0 - 0 !
squashfs-tools/unsquash-12.c | 110 110 + 0 - 0 !
squashfs-tools/unsquash-1234.c | 21 21 + 0 - 0 !
squashfs-tools/unsquash-2.c | 11 11 + 0 - 0 !
squashfs-tools/unsquash-3.c | 6 6 + 0 - 0 !
squashfs-tools/unsquash-4.c | 6 6 + 0 - 0 !
squashfs-tools/unsquashfs.h | 4 4 + 0 - 0 !
8 files changed, 168 insertions(+), 2 deletions(-)

 unsquashfs: additional write outside destination directory exploit
 fix
0008 Unsquashfs Add makefile entry for unsquash 12.o.patch | (download)

squashfs-tools/Makefile | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 unsquashfs: add makefile entry for unsquash-12.o