Bug 14106

Summary: rev doesn't handle long lines correctly in multi-line input
Product: Busybox Reporter: Clayton Craft <clayton>
Component: OtherAssignee: unassigned
Status: NEW ---    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:
Attachments: reproducer input

Description Clayton Craft 2021-08-09 19:01:51 UTC
Created attachment 9076 [details]
reproducer input

Using attached input.txt:
 
$ busybox rev < input.txt
+--------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------
cba---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+--------------+

util-linux rev:

$ rev < input.txt
+--------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------
cba