Skip to content

Commit 134218f

Browse files
committed
Merge pull request #186 from macvim-dev/fix/fail-safe-recurseDraw
Fix a possible infinite recursive recurseDraw call
2 parents 315c8bd + 9988885 commit 134218f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/MacVim/MMCoreTextView.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,6 +1261,12 @@ - (void)batchDrawData:(NSData *)data
12611261
CFRelease(fallback);
12621262
}
12631263

1264+
if (glyphs == g) {
1265+
// No valid chars in the glyphs. Exit from the possible infinite
1266+
// recursive call.
1267+
break;
1268+
}
1269+
12641270
chars = c;
12651271
glyphs = g;
12661272
positions = p;

0 commit comments

Comments
 (0)