Follow-up to patch 9.2.0283. Remove remaining (int) casts before alloc() in vim9script.c and netbeans.c.
vim9script.c (3 locations): lengths derived from STRLEN() on file paths, bounded by PATH_MAX. The (int) cast is unnecessary but not a security issue in practice.netbeans.c (1 location): all operands (oldlen, lastbyte, first) are already int/colnr_T (= int), so the (int) cast is purely redundant — no truncation can occur here.Relates to #19888
https://github.com/vim/vim/pull/19893
(2 files)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@mattn pushed 1 commit.
—
View it on GitHub.
You are receiving this because you are subscribed to this thread.![]()