Skip to content

tar: fix parsing issues for pax and GNU extensions

Zhan Xusheng linux-erofs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2erofs-utils: tar: fix out-of-bounds access when trimming pax pathlib/tar.c+1 -14 replies
2/2erofs-utils: tar: add missing NULL checks for GNU long name/linklib/tar.c+5 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH erofs-utils 0/2] tar: fix parsing issues for pax and GNU extensions

This series fixes two issues in tar parsing:

- An out-of-bounds access when trimming PAX path entries
- Missing NULL pointer checks when handling GNU long name/link records

These issues can be triggered by malformed tar archives and may lead to crashes. The fixes improve robustness when processing untrusted inputs.

Zhan Xusheng (2):
erofs-utils: tar: fix out-of-bounds access when trimming pax path
erofs-utils: tar: add missing NULL checks for GNU long name/link

 lib/tar.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
Signature · 1 line
2.43.0