Subject: bin/36583: /usr/bin/cut: -[bcf] positions are limited to 2048
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <cheusov@tut.by>
List: netbsd-bugs
Date: 07/01/2007 16:10:01
>Number:         36583
>Category:       bin
>Synopsis:       /usr/bin/cut: -[bcf] positions are limited to 2048
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 01 16:10:01 +0000 2007
>Originator:     cheusov@tut.by
>Release:        NetBSD 4.0_BETA2
>Organization:
Best regards, Aleksey Cheusov.
>Environment:
System: NetBSD chen.chizhovka.net 4.0_BETA2 NetBSD 4.0_BETA2 (GENERIC) #20: Wed Jun 20 19:58:12 EEST 2007 cheusov@chen.chizhovka.net:/srv/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:

0 ~>cut -b -3000
cut: [-cf] list: 3000 too large (max 2048)
1 ~>

I personally treat this sort of limitations as a bug.

Please, fix it.

>Fix:
The array "positions" should be allocated in the heap.