Mercurial > vim
view SECURITY.md @ 34155:5c42c39dab38 v9.1.0038
patch 9.1.0038: Unnecessary loop in getvcol()
Commit: https://github.com/vim/vim/commit/4ea37f88e8345ca830271636a2e197a1a46114d2
Author: zeertzjq <zeertzjq@outlook.com>
Date: Wed Jan 17 20:52:13 2024 +0100
patch 9.1.0038: Unnecessary loop in getvcol()
Problem: Unnecessary loop in getvcol().
Solution: Compare next char position with pos->col directly.
(zeertzjq)
The loop below already handles end of line before checking for posptr,
and the next char is after pos->col whether pos->col is at the start or
in the middle of the char in question, so neither the NUL check nor the
mb_head_off() are needed when comparing the position of the next char
with pos->col directly.
closes: #13878
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 17 Jan 2024 21:00:02 +0100 |
parents | 13e4398925ea |
children |
line wrap: on
line source
# Security Policy ## Reporting a vulnerability If you want to report a security issue, please privately disclose the issue to the vim-security mailing list vim-security@googlegroups.com This is a private list, read only by the maintainers, but anybody can post, after moderation. **Please don't publicly disclose the issue until it has been addressed by us.**