[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fwd: Grep patch]
From: |
Ed Smith |
Subject: |
[Fwd: Grep patch] |
Date: |
Mon, 07 Jul 2003 17:17:40 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 |
-------- Original Message --------
Message-ID: <address@hidden>
Date: Sun, 04 May 2003 13:03:03 +0100
From: Ed Smith <address@hidden>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: address@hidden
Subject: Grep patch
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Hi,
Got a seg fault using latest CVS version of grep. Tracked it down and
here's a diff of grep.c:
545c545
< while ((match_offset = (*execute) (ibeg, ilim - ibeg,
&match_size, 1))
---
> while ((match_offset = (*execute) (ibeg, lim - beg,
&match_size, 1))
It was failing because ibeg was being increased in the while loop when a
match was found, thus reporting the wrong size to GExecute.
Thanks,
Ed
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fwd: Grep patch],
Ed Smith <=