From: John Marriott Date: Sun, 22 Jun 2025 17:44:27 +0000 (+0200) Subject: patch 9.1.1474: missing out-of-memory check in mark.c X-Git-Tag: v9.1.1474^0 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=46b02602d6a8b1c62e34cdc05d744812479f4ce3;p=thirdparty%2Fvim.git patch 9.1.1474: missing out-of-memory check in mark.c Problem: missing out-of-memory check in mark.c Solution: bail out, if mark_line() returns NULL (John Marriott) closes: #17578 Signed-off-by: John Marriott Signed-off-by: Christian Brabandt --- diff --git a/src/mark.c b/src/mark.c index 9bab352a8f..778110f919 100644 --- a/src/mark.c +++ b/src/mark.c @@ -783,6 +783,11 @@ show_one_mark( if (name == NULL && current) { name = mark_line(p, 15); + if (name == NULL) + { + emsg(_(e_out_of_memory)); + return; + } mustfree = TRUE; } if (!message_filtered(name)) diff --git a/src/version.c b/src/version.c index bafcef18b0..8f9033bf72 100644 --- a/src/version.c +++ b/src/version.c @@ -709,6 +709,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1474, /**/ 1473, /**/