The bug mentioned in the patch can be reproduced using this as input:
---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+--------------+
abc
$ busybox rev < input.txt
+--------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------
cba---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+--------------+
util-linux's rev:
$ rev < input.txt
+--------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------+---------------
cba
As an aside, I tried to report this to bugzilla but recieved the
following error:
Invalid Content-Type 'subtype' parameter at Bugzilla/BugMail.pm line 471.
Clayton Craft (1):
rev: handle cases where lines are too long for buffer
util-linux/rev.c | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
--
2.32.0
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox