Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compute-coll-string can (and does) overshoot the collector data array #9

Open
reanz59 opened this issue Sep 1, 2021 · 0 comments
Open

Comments

@reanz59
Copy link

reanz59 commented Sep 1, 2021

Replacement code guards limit of from vector:

(defun compute-coll-string (coll)
(declare (optimize (speed 3) (safety 1)))
;; return the string that's in the collection
(let ((from (collector-data coll)))
(subseq from 0 (min (collector-next coll)
(array-dimension from 0)))))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant