[vim/vim] Fix use-after-free in popup_getoptions() on dict_add() failure (PR #20464)

2 views
Skip to first unread message

mattn

unread,
12:37 AM (9 hours ago) 12:37 AM
to vim/vim, Subscribed

When dict_add() fails, dictitem_free() already frees the blob, but the cleanup then reads the freed blob's refcount and could free it again. Clear the pointer after dictitem_free().


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

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

Commit Summary

  • bf35893 Fix use-after-free in popup_getoptions() on dict_add() failure

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20464@github.com>

Reply all
Reply to author
Forward
0 new messages