Bugs item #1017625, was opened at 2004-08-27 16:26
Message generated for change (Settings changed) made by mainzelm
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110493&aid=1017625&group_id=10493
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: run-time
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: hetz (chetz)
Assigned to: Martin Gasbichler (mainzelm)
Summary: read-delimited! -> heap overflow
Initial Comment:
The read-delimited! function from section 7 of the
manual has the following strange behavior:
calling it as follows
14> (define buffer "abcdefghi")
14> (read-delimited! "abc" buffer)
it returns, iff the first sign written is an 'a' a 'b', or a 'c'.
if the first sign is not a sign from the char-set argument
("abc") it won't return at all, but exits the scsh after a
few seconds by a heap overflow.
14> (define buffer "abcdefghi")
14> (read-delimited! "abc" buffer)
x
Scheme48 heap overflow
Process scheme exited abnormally with code 255
----------------------------------------------------------------------
>Comment By: Martin Gasbichler (mainzelm)
Date: 2005-10-18 16:58
Message:
Logged In: YES
user_id=17553
The buffer in the example is immutable but
(%)read-delimited! failed to reject it in the first place.
Fixed
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110493&aid=1017625&group_id=10493
|