diff options
| author | Bram Moolenaar <Bram@vim.org> | 2015-11-22 19:39:38 +0100 |
|---|---|---|
| committer | Bram Moolenaar <Bram@vim.org> | 2015-11-22 19:39:38 +0100 |
| commit | 294a7e55b01149154807a23323038784549b8946 (patch) | |
| tree | 63d78d7e35a5c2100c97ae878a88949fb860af6d /src/window.c | |
| parent | 6040256d8b0404564ac6f192296b12ea9d175e7d (diff) | |
| download | vim-git-294a7e55b01149154807a23323038784549b8946.tar.gz | |
patch 7.4.936v7.4.936
Problem: Crash when dragging with the mouse.
Solution: Add safety check for NULL pointer. Check mouse position for valid
value. (Hirohito Higashi)
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c index e8134e06a..010d7ae50 100644 --- a/src/window.c +++ b/src/window.c @@ -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); |
