[vim/vim] fix dangling cmdline pointer after skip_expr_cctx (PR #20148)

6 views
Skip to first unread message

mattn

unread,
May 6, 2026, 12:09:57 AM (yesterday) May 6
to vim/vim, Subscribed

Extract the cmdline restoration logic from compile_lambda into a helper restore_cmdline_arg() and call it from skip_expr_cctx() too, so a skipped lambda inside an "else" branch does not leave "*arg" pointing into freed evalarg memory.

Fixes #20147


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/20148

Commit Summary

  • 60d4ece fix dangling cmdline pointer after skip_expr_cctx

File Changes

(2 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20148@github.com>

Foxe Chen

unread,
May 6, 2026, 12:45:54 PM (yesterday) May 6
to vim/vim, Subscribed
64-bitman left a comment (vim/vim#20148)

This fixes the issue for me. Thanks


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20148/c4390183916@github.com>

Christian Brabandt

unread,
May 6, 2026, 2:14:15 PM (yesterday) May 6
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#20148)

thanks


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20148/c4390753904@github.com>

Christian Brabandt

unread,
May 6, 2026, 2:14:29 PM (yesterday) May 6
to vim/vim, Subscribed

Closed #20148 via 4bcc8ba.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20148/issue_event/25230746823@github.com>

Reply all
Reply to author
Forward
0 new messages