X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Freader.lisp;h=41226cbc060399990f140619d9444dfc70a7a628;hb=1bbb76fcfb9baddf0dc96412c87575d8aeb69c6d;hp=2372ef8750fd2165af1f6dee3cd7f5fe36d6b739;hpb=b5183a46f304490682ebbac0a1a116681d3b2163;p=sbcl.git diff --git a/src/code/reader.lisp b/src/code/reader.lisp index 2372ef8..41226cb 100644 --- a/src/code/reader.lisp +++ b/src/code/reader.lisp @@ -1400,9 +1400,10 @@ and the lisp object built by the reader is returned. Macro chars will take effect." (declare (string string)) + (with-array-data ((string string) (start start) - (end (or end (length string)))) + (end (%check-vector-sequence-bounds string start end))) (unless *read-from-string-spares* (push (internal-make-string-input-stream "" 0 0) *read-from-string-spares*)) @@ -1431,7 +1432,7 @@ :format-arguments (list string)))) (with-array-data ((string string) (start start) - (end (or end (length string)))) + (end (%check-vector-sequence-bounds string start end))) (let ((index (do ((i start (1+ i))) ((= i end) (if junk-allowed