`put-bytevector' should allow zero-sized writes

Bug #373746 reported by Andreas Rottmann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ikarus Scheme
Fix Committed
Low
Abdulaziz Ghuloum

Bug Description

Ikarus doesn't allow zero-sized writes with `put-bytevector', which
should by legal, at least according to my reading of R6RS.

  Ikarus Scheme version 0.0.4-rc1+, 64-bit (revision 1771, build 2009-05-08)
  Copyright (c) 2006-2009 Abdulaziz Ghuloum

  > (put-bytevector (standard-output-port) #vu8() 0)
  Unhandled exception
   Condition components:
     1. &assertion
     2. &who: put-bytevector
     3. &message: "index out of range"
     4. &irritants: (0)
  > (put-bytevector (standard-output-port) #vu8() 0 0)
  Unhandled exception
   Condition components:
     1. &assertion
     2. &who: put-bytevector
     3. &message: "index out of range"
     4. &irritants: (0)
  >

The attached patch should fix this.

Related branches

Revision history for this message
Andreas Rottmann (rotty) wrote :
Revision history for this message
Abdulaziz Ghuloum (aghuloum) wrote :

Applied patch in revision 1790.

Changed in ikarus:
assignee: nobody → Abdulaziz Ghuloum (aghuloum)
importance: Undecided → Low
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.