Commit eb4d412d authored by Paul Eggert's avatar Paul Eggert
Browse files

* syntax.c (scan_sexps_forward): Avoid pointer wraparound.

parent 1658b401
2011-03-27 Paul Eggert <eggert@cs.ucla.edu> 2011-03-27 Paul Eggert <eggert@cs.ucla.edu>
   
* syntax.c (scan_sexps_forward): Avoid pointer wraparound.
* xterm.c (x_make_frame_visible, same_x_server): Redo to avoid overflow * xterm.c (x_make_frame_visible, same_x_server): Redo to avoid overflow
concerns. concerns.
   
...@@ -3265,9 +3265,9 @@ do { prev_from = from; \ ...@@ -3265,9 +3265,9 @@ do { prev_from = from; \
= (curlevel == levelstart) ? -1 : (curlevel - 1)->last; = (curlevel == levelstart) ? -1 : (curlevel - 1)->last;
state.location = from; state.location = from;
state.levelstarts = Qnil; state.levelstarts = Qnil;
while (--curlevel >= levelstart) while (curlevel > levelstart)
state.levelstarts = Fcons (make_number (curlevel->last), state.levelstarts = Fcons (make_number ((--curlevel)->last),
state.levelstarts); state.levelstarts);
immediate_quit = 0; immediate_quit = 0;
*stateptr = state; *stateptr = state;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment