bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: in a search, the last line of a section is never found


From: Vincent Lefevre
Subject: Re: in a search, the last line of a section is never found
Date: Wed, 20 May 2015 00:46:19 +0200
User-agent: Mutt/1.5.23-6449-vl-r76280 (2015-05-18)

On 2015-05-19 16:56:21 +0100, Gavin Smith wrote:
> Thanks for the report. It appears to work on the current development
> version for me. Maybe you could try the 5.9.92 pretest at
> http://alpha.gnu.org/gnu/texinfo/ to see if the same problem occurs
> with it.

There's no pretest tarball, but I could test with the svn repository.
The bug was fixed in:

r5403 | gray | 2014-01-09 22:58:13 +0100 (Thu, 09 Jan 2014) | 10 lines

Fix search boundary checking.
Based on report from Gavin Smith <address@hidden>

* info/search.c (regexp_search): Save previous values of
start and end bounds (sorted) and rescan the buffer if these
differ from the actual values.
Fix boundary checking (using end bound instead of the buffer
length).
Use x2nrealloc to grow matches buffer.

--------

I was quite surprised because "man info" under Debian says:

info 5.2                         December 2014                         INFO(1)

so that I thought that the bug was still there at that time.

-- 
Vincent Lefèvre <address@hidden> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]