Yakov Lerner wrote:

> > I cannot guess where this loop first gets beyond end of file
> > (filesize=2506), but once it gets beyond, we are missing check that
> > search_info.*offset''s are beyond end of file ?
> > Maybe add such check somewhere ? I don't know where to add the check.
> 
> It seems I found the culprint. It is line 1651,
> search_info.match_offset = ftell(fp);
> 
> (gdb) p ftell(fp)
> $11 = 2506
> (gdb) n
> 1652                        search_info.curr_offset =
> search_info.curr_offset_used;
> (gdb) p search_info.curr_offset
> $12 = 5258708302025
> (gdb)

This doesn't make sense. curr_offset_used is set to curr_offset 34 lines
back.  Is this a compiler bug?  You did disable the optimizer, right?

-- 
ARTHUR:          What does it say?
BROTHER MAYNARD: It reads ... "Here may be found the last words of Joseph of
                 Aramathea." "He who is valorous and pure of heart may find
                 the Holy Grail in the aaaaarrrrrrggghhh..."
ARTHUR:          What?
BROTHER MAYNARD: "The Aaaaarrrrrrggghhh..."
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Reply via email to