bytevector-uint-set! accepts zero size

Bug #418937 reported by Gwen Weinholt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ikarus Scheme
Fix Committed
Low
Abdulaziz Ghuloum

Bug Description

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

> (bytevector-uint-ref #vu8() 0 (endianness big) 0)
Unhandled exception
 Condition components:
   1. &assertion
   2. &who: bytevector-uint-ref
   3. &message: "invalid size"
   4. &irritants: (0)
> (let ((bv (make-bytevector 2 #xff)))
    (bytevector-uint-set! bv 0 0 (endianness big) 0)
    bv)
#vu8(255 255)

The size must be positive, so the call to bytevector-uint-set! should have raised an exception.

Related branches

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

Fixed in 1846. Thanks.

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.