diff options
| author | glepnir <glephunter@gmail.com> | 2025-08-13 04:43:56 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-12 13:43:56 -0700 |
| commit | c7c3f9fc9c3a97cc8f48ea5cfffa1d0fc79abb5d (patch) | |
| tree | 617e34508e03f32263276cd263aeaba1195dedc6 /runtime/lua/vim | |
| parent | 3eab5bd38a5680066166a4e94c788ef345081dc7 (diff) | |
fix(api): fix crash in command preview with % #35228
Problem: parse_cmdline() sets eap->cmdlinep to address of local parameter,
causing invalid memory access when expand_filename() tries to modify it.
This leads to crashes when typing '%' in user commands with preview=true
and complete=file.
Solution: Change parse_cmdline() signature to accept char **cmdline,
allowing cmdlinep to point to caller's variable for safe reallocation.
Diffstat (limited to 'runtime/lua/vim')
0 files changed, 0 insertions, 0 deletions
