Files
Mahdi ramezaan zaadeandAlexander Medvednikov 4aaa69d502 archive/tar: verify header checksum for link and device types (#30536)
* archive/tar: verify header checksum for link and device types

The hard_link, sym_link, char_dev, block_dev and fifo arms of read_header() accepted headers without checking checksum_ok(), while dir and file arms rejected corrupt headers. Add the missing checksum check so a corrupt link/device header returns a Checksum error like other types.

Fixes #30479

* archive.tar: document header checksum validation

---------

Co-authored-by: Alexander Medvednikov <alexander@medvednikov.com>
2026-10-14 19:20:54 +03:00
..

Description

archive is a namespace for different archive formats like tar or zip.