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

* lread.c (safe_to_load_p): Make the end-of-loop test the inverse of the in-loop.

parent 3c346cc3
......@@ -2,6 +2,7 @@
* lread.c (lisp_file_lexically_bound_p): Use ints rather than endptrs.
(lisp_file_lexically_bound_p, read1): Use unsigned instead of int.
(safe_to_load_p): Make the end-of-loop test the inverse of the in-loop.
* print.c (print_error_message): Avoid int overflow.
......@@ -907,7 +907,7 @@ safe_to_load_p (int fd)
if (i == 4)
version = buf[i];
if (i == nbytes
if (i >= nbytes
|| fast_c_string_match_ignore_case (Vbytecomp_version_regexp,
buf + i) < 0)
safe_p = 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