Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#81 read-delimited! -> heap overflow

closed-fixed
run-time (53)
5
2005-10-18
2004-08-27
christoph hetz
No

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

Discussion

    • labels: --> run-time
    • assigned_to: nobody --> nofreude
     
    • assigned_to: nofreude --> mainzelm
     
  • 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

     
    • status: open --> closed-fixed