mirror of
https://github.com/neovim/neovim.git
synced 2026-03-20 15:39:43 +00:00
While in the `while` loop at line 603 of function searchit(), memory address ptr+matchpos is always valid. The strlen() check should not be necessary to verify this. Also added a check to prevent reading a line after the end of the buffer.