|
From: | GNU bug Tracking System |
Subject: | [Emacs-bug-tracker] bug#7993: closed (cut segmentation fault with unbounded ranges) |
Date: | Mon, 07 Feb 2011 07:37:01 +0000 |
Your message dated Mon, 07 Feb 2011 08:45:36 +0100 with message-id <address@hidden> and subject line Re: bug#7993: Acknowledgement (cut segmentation fault with unbounded ranges) has caused the GNU bug report #7993, regarding cut segmentation fault with unbounded ranges to be marked as done. (If you believe you have received this mail in error, please contact address@hidden) -- 7993: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7993 GNU Bug Tracking System Contact address@hidden with problems
--- Begin Message ---Subject: cut segmentation fault with unbounded ranges Date: Sun, 06 Feb 2011 18:20:11 +0000 User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.12) Gecko/20100826 Thunderbird/3.0.7 In coreutils 8.9 (latest), the following commands trigger an invalid memory access. cut -c1234567890- --output-d=: foo cut -f1234567890- --output-d=: foo cut -b1234567890- --output-d=: foo The number 1234567890 is just a random number 'big enough' to make the invalid access generate a segmentation fault but the invalid access happens for values as low as 8 (valgrind) The problem is that ranges going to end of line (i.e., 'x-') are not taken into account when calculating the size of the printable_field vector, but their lower bound is used as an index on line 525: if (output_delimiter_specified && !complement && eol_range_start && !is_printable_field (eol_range_start)) Paul
--- End Message ---
--- Begin Message ---Subject: Re: bug#7993: Acknowledgement (cut segmentation fault with unbounded ranges) Date: Mon, 07 Feb 2011 08:45:36 +0100 > Please ignore this. It's a duplicate submission of bug# 7992 Ok. marking it closed.
--- End Message ---
[Prev in Thread] | Current Thread | [Next in Thread] |