[Bug 15276] New: cut: transforms 0x00 to 0x0a
bugzilla at busybox.net
bugzilla at busybox.net
Sun Jan 22 20:50:47 UTC 2023
https://bugs.busybox.net/show_bug.cgi?id=15276
Bug ID: 15276
Summary: cut: transforms 0x00 to 0x0a
Product: Busybox
Version: 1.35.x
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at busybox.net
Reporter: iam at valdikss.org.ru
CC: busybox-cvs at busybox.net
Target Milestone: ---
Cut utility incorrectly replaces null-byte (0x00) with \n (0x0a).
Tested with Busybox 1.36.0 and Busybox 1.20.0 ("Busybox in VM" link on the
website).
Busybox:
$ echo -ne "\x00\x01\x02\x03\x04\x05\x06" | ./busybox cut -b 1-3 | hexdump -C
00000000 0a 01 02 03 0a |.....|
00000005
GNU coreutils:
$ echo -ne "\x00\x01\x02\x03\x04\x05\x06" | cut -b 1-3 | hexdump -C
00000000 00 01 02 0a |....|
00000004
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list