Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Feb 2001 04:36:39 -0800 (PST)
From:      william@babeltech.dk
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/25250: segfault on tar Ixvf
Message-ID:  <200102211236.f1LCad244208@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         25250
>Category:       bin
>Synopsis:       segfault on tar Ixvf
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 21 04:40:13 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     William Brady
>Release:        4.2-STABLE
>Organization:
Babeltech.dk
>Environment:
FreeBSD xef4.babeltech.dk 4.2-STABLE FreeBSD 4.2-STABLE #21: Wed Feb 14 15:39:10 CET 2001     root@xef4.babeltech.dk:/usr/src/sys/compile/NKNL  i386

>Description:
tar Ixvf does not perform proper argument checking and segfaults if not given an additional argument.  Giving the proper arguments exits with "tar: too many args with -T option"

>How-To-Repeat:
tar Ixvf quux

>Fix:
Change line 327 of /usr/src/gnu/usr.bin/tar/tar.c

from
"-01234567Ab:BcC:df:F:g:GhiIjkK:lL:mMnN:oOpPrRsStT:[AuUvV:wWxX:yzZ",

to
"-01234567Ab:BcC:df:F:g:GhiI:jkK:lL:mMnN:oOpPrRsStT:[AuUvV:wWxX:yzZ",

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102211236.f1LCad244208>