From: Bram Moolenaar Date: Fri, 13 Sep 2019 20:16:21 +0000 (+0200) Subject: patch 8.1.2026: possibly using uninitialized memory X-Git-Tag: v8.1.2026 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dbec74907eb614517bcf27116d5aad32e087f241;p=vim patch 8.1.2026: possibly using uninitialized memory Problem: Possibly using uninitialized memory. Solution: Check if "dict" is NULL. (closes #4925) --- diff --git a/src/ops.c b/src/ops.c index 7b1d9ede7..5f0181ba5 100644 --- a/src/ops.c +++ b/src/ops.c @@ -7074,12 +7074,12 @@ cursor_pos_info(dict_T *dict) } bom_count = bomb_size(); - if (bom_count > 0) + if (dict == NULL && bom_count > 0) vim_snprintf((char *)IObuff + STRLEN(IObuff), IOSIZE, _("(+%lld for BOM)"), (long_long_T)bom_count); if (dict == NULL) { - /* Don't shorten this message, the user asked for it. */ + // Don't shorten this message, the user asked for it. p = p_shm; p_shm = (char_u *)""; msg((char *)IObuff); diff --git a/src/version.c b/src/version.c index f412732ca..c15abcbbe 100644 --- a/src/version.c +++ b/src/version.c @@ -757,6 +757,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2026, /**/ 2025, /**/