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>
 
* syntax.c (scan_sexps_forward): Avoid pointer wraparound.
* xterm.c (x_make_frame_visible, same_x_server): Redo to avoid overflow
concerns.
 
......@@ -3265,8 +3265,8 @@ do { prev_from = from; \
= (curlevel == levelstart) ? -1 : (curlevel - 1)->last;
state.location = from;
state.levelstarts = Qnil;
while (--curlevel >= levelstart)
state.levelstarts = Fcons (make_number (curlevel->last),
while (curlevel > levelstart)
state.levelstarts = Fcons (make_number ((--curlevel)->last),
state.levelstarts);
immediate_quit = 0;
......
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