Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jan 2006 12:33:32 GMT
From:      Nikos Vassiliadis <nvass@teledome.gr>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/91707: 0xa0 character can crash bash-3.00.16(1)-release
Message-ID:  <200601121233.k0CCXWur061504@www.freebsd.org>
Resent-Message-ID: <200601121240.k0CCe3ws099435@freefall.freebsd.org>

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

>Number:         91707
>Category:       ports
>Synopsis:       0xa0 character can crash bash-3.00.16(1)-release
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 12 12:40:02 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Nikos Vassiliadis
>Release:        6.0-STABLE
>Organization:
>Environment:
FreeBSD iris.teledomenet.gr 6.0-STABLE FreeBSD 6.0-STABLE #0: Mon Jan  9 19:59:39 EET 2006     root@iris.teledomenet.gr:/usr/obj/usr/src/sys/GENERIC  i386 

>Description:
Bash-3.00.16(1)-release crashes if the command line contains the character 0xa0.

>How-To-Repeat:

>Fix:
Sorry, not known. Maybe building with other
parameters than the ones currently used will
work-around the problem.

>Release-Note:
>Audit-Trail:
>Unformatted:
 >nik:0:~/tmp/tmp$ 
 >nik:0:~/tmp/tmp$ 
 >GNU bash, version 3.00.16(1)-release (i386-portbld-freebsd6.0)
 >nik:0:~/tmp/tmp$ 
 >nik:0:~/tmp/tmp$ touch `echo -ne "test\xa0test"`
 >nik:0:~/tmp/tmp$ ulimit -v
 >6144
 
 set this! or else bash will allocate huge amounts of memory
 before crashing
 
 >nik:0:~/tmp/tmp$ ls -l
 >total 0
 >-rw-r--r--  1 nik  nik  0 Jan 12 13:44 test test
 
 use TAB to complete the command
 
 >nik:0:~/tmp/tmp$ ls -l test test 
 >bash: xmalloc: cannot allocate 8 bytes (0 bytes allocated)
 
 We are back to the parent shell
 
 >nik:0:~$ 
 



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