[ prog / sol / mona ]

prog


Running SchemeBBS using MIT Scheme 11.2

20 2022-05-31 02:35

>>18
In your implementation of read-file, shouldn't there be at least two calls to read-bytevector, with the last call checking that it is an end-of-file object? If the file size changes between file-length and call-with-binary-input-file, we might get the wrong data. I think this is an example of a "time-of-check to time-of-use" bug.

56


VIP:

do not edit these