# HG changeset patch # User Christian Brabandt # Date 1478794504 -3600 # Node ID 9f88dba65a2d4c51c58aebe4bc0fa974ceaa0294 # Parent 1406a8ee653ab155a998c4106ef17fd37d9c5d90 commit https://github.com/vim/vim/commit/38bc49563782ee1cb91660e58acf1afe1a31020a Author: Bram Moolenaar Date: Thu Nov 10 17:10:51 2016 +0100 patch 8.0.0072 Problem: MS-Windows: Crash with long font name. (Henry Hu) Solution: Fix comparing with LF_FACESIZE. (Ken Takata, closes https://github.com/vim/vim/issues/1243) diff --git a/src/os_mswin.c b/src/os_mswin.c --- a/src/os_mswin.c +++ b/src/os_mswin.c @@ -2893,7 +2893,7 @@ get_logfont( */ for (p = name; *p && *p != ':'; p++) { - if (p - name + 1 > LF_FACESIZE) + if (p - name + 1 >= LF_FACESIZE) goto theend; /* Name too long */ lf->lfFaceName[p - name] = *p; } diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -765,6 +765,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 72, +/**/ 71, /**/ 70,