[vim/vim] Some functions in vim9class.c do not check for out-of-memory condition (PR #18947)

3 views
Skip to first unread message

John Marriott

unread,
Dec 16, 2025, 4:26:39 PM (8 hours ago) Dec 16
to vim/vim, Subscribed

Functions is_duplicate_variable() and is_duplicate_enum call vim_strnsave() but do not check if the call was successful.

Fix this by refactoring both functions to avoid the need to call vim_strnsave().

Cheers
John


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

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

Commit Summary

  • 04fddef Some functions in do not check for out-of-memory condition

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18947@github.com>

Reply all
Reply to author
Forward
0 new messages