[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#15100: Division by zero in bytevector->uint-list

From: Göran Weinholt
Subject: bug#15100: Division by zero in bytevector->uint-list
Date: Thu, 15 Aug 2013 13:02:16 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

Hello schemers,

the bytevector->uint-list procedure from (rnrs) can crash Guile through
a division by zero:

scheme@(guile-user)> (import (rnrs))
scheme@(guile-user)> (bytevector->uint-list #vu8(0) 'x 0)
Floating point exception

The same happens with bytevector->sint-list. These procedures also do
not check that the length of the bytevector is divisible by the size.

Tested with GNU Guile


Göran Weinholt <address@hidden>
"What's worse than clowns? Danish clowns."
  -- Mystery Science Theatre 3000

Attachment: pgpSyfvkJKpah.pgp
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]