Public bug reported:

Hi!  I can reproduce this on Ubuntu 24.04 and 24.10 but not Debian
stable/testing.  Tar version 1.35.

jas@kaka:~$ podman run -it --rm ubuntu:24.04
root@3672b1c0c909:/# export 
TAR_OPTIONS="--pax-option='delete=atime,delete=ctime'"
root@3672b1c0c909:/# mkdir foo
root@3672b1c0c909:/# tar cf foo.tar foo
*** buffer overflow detected ***: terminated
Aborted (core dumped)
root@3672b1c0c909:/# 

It seems somehow related to using quotes in the command line since this
works:

root@3672b1c0c909:/# export TAR_OPTIONS="--pax-
option=delete=atime,delete=ctime"

Arguable this may be incorrect usage, but tar shouldn't crash.  Strange
thing is that Debian tar doesn't crash.

Thanks,
Simon

** Affects: tar (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2093028

Title:
  tar in 24.04+24.10 crash on pax archives with options

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tar/+bug/2093028/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to