From nobody@FreeBSD.org  Wed Feb 21 04:36:40 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 4170B37B401
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 21 Feb 2001 04:36:39 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f1LCad244208;
	Wed, 21 Feb 2001 04:36:39 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200102211236.f1LCad244208@freefall.freebsd.org>
Date: Wed, 21 Feb 2001 04:36:39 -0800 (PST)
From: william@babeltech.dk
To: freebsd-gnats-submit@FreeBSD.org
Subject: segfault on tar Ixvf
X-Send-Pr-Version: www-1.0

>Number:         25250
>Category:       bin
>Synopsis:       segfault on tar Ixvf
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 21 04:40:13 PST 2001
>Closed-Date:    Wed Jul 18 20:45:48 PDT 2001
>Last-Modified:  Wed Jul 18 20:47:46 PDT 2001
>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:
State-Changed-From-To: open->closed 
State-Changed-By: mike 
State-Changed-When: Wed Jul 18 20:45:48 PDT 2001 
State-Changed-Why:  
This PR has been superseded by PR: bin/26010 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=25250 
>Unformatted:
