]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.2.0039: potential integer underflow in screen_line() v9.2.0039
authorChristian Brabandt <cb@256bit.org>
Sat, 21 Feb 2026 10:50:20 +0000 (10:50 +0000)
committerChristian Brabandt <cb@256bit.org>
Sat, 21 Feb 2026 10:53:25 +0000 (10:53 +0000)
commit402eb5b5a6de2b16824eeefa7c4ef8cfd565a7d5
tree56fb725792030eb355722e3983b329f58fee0ba4
parent82d33354d0ab26d0a5c1fe5aa13f4cbbe33a43ab
patch 9.2.0039: potential integer underflow in screen_line()

Problem:  In screen_line(), there is a potential integer underflow when
          accessing ScreenAttrs[off_to - 1] if off_to is zero.
          (Coverity CID 1681430, after v9.2.0017)
Solution: Add a check to ensure off_to > 0 before accessing the
          previous attribute index.

related: #19272
closes:  #19479

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/screen.c
src/version.c