0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 7.4.936

Problem:    Crash when dragging with the mouse.
Solution:   Add safety check for NULL pointer. Check mouse position for valid
            value. (Hirohito Higashi)
This commit is contained in:
Bram Moolenaar
2015-11-22 19:39:38 +01:00
parent 6040256d8b
commit 294a7e55b0
3 changed files with 11 additions and 0 deletions

View File

@@ -5785,6 +5785,8 @@ win_drag_vsep_line(dragwin, offset)
offset = room; /* Move as far as we can */
if (offset <= 0) /* No room at all, quit. */
return;
if (fr == NULL)
return; /* Safety check, should not happen. */
/* grow frame fr by offset lines */
frame_new_width(fr, fr->fr_width + offset, left, FALSE);