Fix reading large pax extended records
authorjca <jca@openbsd.org>
Tue, 16 Apr 2024 22:58:10 +0000 (22:58 +0000)
committerjca <jca@openbsd.org>
Tue, 16 Apr 2024 22:58:10 +0000 (22:58 +0000)
commitfe4b30a0642f0cd4c7dedc0f03aef70250ce15b6
tree4ae3cada9aa7f06dc6c5d2a1f98d49bcadc70de3
parentcf0ae65b895da457db471c209b01b67e3d05c865
Fix reading large pax extended records

512 bytes isn't enough if you want to store rather large but still
useful long file names or symbolic links destinations.  The best way to
size the buffer to read those records is based upon the largest paths
pax(1) can handle, and that is PAXPATHLEN.

Reported by caspar@, input and ok millert@
bin/pax/tar.c