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)
diff --git a/src/window.c b/src/window.c
index e8134e0..010d7ae 100644
--- a/src/window.c
+++ b/src/window.c
@@ -5785,6 +5785,8 @@
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);