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: Marius Spix
Subject: Re: [Bug-tar] [PATCH] --one-top-level: avoid a heap-buffer-overflow
Date: Sun, 8 Apr 2018 23:55:53 +0200

What is in the case that the suffix is not 3 characters long, e. g.
".tz" or ".tbz2"?

On Sun, 8 Apr 2018 12:34:40 -0700
Jim Meyering <address@hidden> wrote:

> 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?
> 

Attachment: pgp3Nfnn1dwDd.pgp
Description: Digitale Signatur von OpenPGP


reply via email to

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