bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] [PATCH] --one-top-level: avoid a heap-buffer-overflow


From: Jim Meyering
Subject: Re: [Bug-tar] [PATCH] --one-top-level: avoid a heap-buffer-overflow
Date: Sun, 8 Apr 2018 12:34:40 -0700

On Sun, Apr 8, 2018 at 11:16 AM, Jim Meyering <address@hidden> wrote:
> On Sun, Apr 8, 2018 at 1:53 AM, Sergey Poznyakoff <address@hidden> wrote:
...
> I see what you mean. So how would you like a NAME of "a.tar.tar" to be
> treated? Seems wrong to remove the second .tar suffix. How about this
> change, to make it remove ".tar" only if the just-stripped suffix is
> not also ".tar"?

After writing that, I realized that perhaps we should treat a name
like "foo.tar.tgz" (whose final suffix begins with ".t") like
"foo.tar.tar", i.e., in preserving the nested ".tar" component. WDYT?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]