Subject: bin/36583: /usr/bin/cut: -[bcf] positions are limited to 2048
To: None <,>
From: None <>
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
>Release:        NetBSD 4.0_BETA2
Best regards, Aleksey Cheusov.
System: NetBSD 4.0_BETA2 NetBSD 4.0_BETA2 (GENERIC) #20: Wed Jun 20 19:58:12 EEST 2007 i386
Architecture: i386
Machine: i386

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.

The array "positions" should be allocated in the heap.