In function find_pattern_in_path, vim will reading past end of line with insert mode completion.
aux = p = startp; if (compl_status_adding()) // Forget to check text length of `p` here { p += ins_compl_len(); if (vim_iswordp(p)) goto exit_matched; p = find_word_start(p); } p = find_word_end(p);
It's better to add check as ins_compl_len() <= (int)STRLEN(p).
This is similar to CVE-2022-2571.
Ref Link: a6f9e30
This will cause potential buffer overflow as CVE-2022-2571.
9.1.1725
A simple code audit, not implemented.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
is this AI generated?
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
The code audit was indeed conducted using AI.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
I guess this doesn't hurt. Does you AI also provide a test case for this?
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Closed #18195 as completed via 21ecb0d.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()