aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorScott Corley2018-10-07 00:10:29 -0700
committerPaul Eggert2018-10-07 00:11:48 -0700
commitee3f4698704c26c503064e15ad7a75b7d693b1e4 (patch)
tree594bf3c3b27719df1b827073a9d972067cb79cac /src
parent3cc452327eff056f17637566aaf05a877e61d69a (diff)
downloademacs-ee3f4698704c26c503064e15ad7a75b7d693b1e4.tar.gz
emacs-ee3f4698704c26c503064e15ad7a75b7d693b1e4.zip
Fix overflow lockup with frames > 255 lines
* src/scroll.c (struct matrix_elt): Change unsigned char fields to int to handle frames with more than 255 lines (Bug#32951). Copyright-paperwork-exempt: yes
Diffstat (limited to 'src')
-rw-r--r--src/scroll.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/scroll.c b/src/scroll.c
index a29f2d37f54..240005b4e32 100644
--- a/src/scroll.c
+++ b/src/scroll.c
@@ -41,13 +41,13 @@ struct matrix_elt
41 int deletecost; 41 int deletecost;
42 /* Number of inserts so far in this run of inserts, 42 /* Number of inserts so far in this run of inserts,
43 for the cost in insertcost. */ 43 for the cost in insertcost. */
44 unsigned char insertcount; 44 int insertcount;
45 /* Number of deletes so far in this run of deletes, 45 /* Number of deletes so far in this run of deletes,
46 for the cost in deletecost. */ 46 for the cost in deletecost. */
47 unsigned char deletecount; 47 int deletecount;
48 /* Number of writes so far since the last insert 48 /* Number of writes so far since the last insert
49 or delete for the cost in writecost. */ 49 or delete for the cost in writecost. */
50 unsigned char writecount; 50 int writecount;
51 }; 51 };
52 52
53static void do_direct_scrolling (struct frame *, 53static void do_direct_scrolling (struct frame *,