From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 15 07:25:25 2013 Received: (at submit) by debbugs.gnu.org; 15 Aug 2013 11:25:25 +0000 Received: from localhost ([127.0.0.1]:59916 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V9vgC-00067g-MA for submit@debbugs.gnu.org; Thu, 15 Aug 2013 07:25:25 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35394) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V9vVZ-0005md-Hn for submit@debbugs.gnu.org; Thu, 15 Aug 2013 07:14:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9vVT-0001ol-6H for submit@debbugs.gnu.org; Thu, 15 Aug 2013 07:14:20 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-99.2 required=5.0 tests=BAYES_50,T_DKIM_INVALID, USER_IN_WHITELIST autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:56818) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9vVT-0001og-1e for submit@debbugs.gnu.org; Thu, 15 Aug 2013 07:14:19 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9vVR-0006w9-KY for bug-guile@gnu.org; Thu, 15 Aug 2013 07:14:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9vVQ-0001nc-73 for bug-guile@gnu.org; Thu, 15 Aug 2013 07:14:17 -0400 Received: from iustitia.weinholt.se ([2a02:28f0:0:a::7dce:e5a8]:50131) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9vVP-0001kT-SD for bug-guile@gnu.org; Thu, 15 Aug 2013 07:14:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=weinholt.se; s=iustitia2012; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From; bh=MWZ7hsR9yYy6CECn+oe4SScDUxkRh2QylQfXhFOmqa4=; b=hbkWPd1F6MGy8/CasQ3vxxR4J6CWxd6Fzm51Ac1vGau4vRvgJPWtjr2nL7AyGVD24VPE8z79v3aI1Q7Kw+Kyfhsjin+grIgykCj2IFQH4GGDJPztEPClrhYAbcynOxKhC8ulxjcA1h9nZxsuv+NvEcbGpUsbjIuQ7GIOAm+fzTjlN8wezejwL7JpqNkJQB5ir8xp0IdCE/1hLfdQhZevmG1wUKyjQ+/7KIaAvzlUaA45qMLvihf0tv/Gg5iKvyjOzG/v2yRHZ0HIZ4vzF8A/Cuo13VbwKvbBFcNRp8BAD+tw+LItIPrRnWr0Lqwf4QzSd9C7maxNwyDfEcc3CJ6+MA==; Received: from uucp by iustitia.weinholt.se with local-bsmtp (Exim 4.72) (envelope-from ) id 1V9vVH-0006IV-1l; Thu, 15 Aug 2013 13:14:07 +0200 Received: from weinholt by industria with local (Exim 4.80) (envelope-from ) id 1V9vJp-0002a9-55; Thu, 15 Aug 2013 13:02:17 +0200 X-Hashcash: 1:20:130815:bug-guile@gnu.org::Sg0StbvdUOGQou6Q:000000000000000000000000000000000000000000001iOU From: =?utf-8?Q?G=C3=B6ran?= Weinholt To: bug-guile@gnu.org Subject: Division by zero in bytevector->uint-list Date: Thu, 15 Aug 2013 13:02:16 +0200 Message-ID: <87li438bev.fsf@industria.weinholt.se> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.3 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 2.0.9.71-8d5d04. Regards, =2D-=20 G=C3=B6ran Weinholt "What's worse than clowns? Danish clowns." -- Mystery Science Theatre 3000 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBCgAGBQJSDLU4AAoJEOM+YaLpuMOiSycP/3ncwlJuPIcQQro1hik3735O bM893AiCzx6k9UiNo8P/M2w4fPlwNP9jxJ1aIlr6nNbdO5fy7MblOEQm2xyz19tD j3dMrBFYxF0NhrUsB4FzA9+XBVr2x0pOZ0f3cl9NwBmpvlaUZt/KOANwS0tLPsjW eyyL8PFGs62chGUo+Ym/zZ8C/IaSaWt7MwUrvy/jIi6DFqtlb5/zrnkUxEmaTx5v ifWaWH9TsWxdZBy9Sm58dZbPeJJQhEEAQGP5Zgo/ojvozG+OazWeT30CcAzlazOh 0QiRMW1Z66MAKNOQGjbp3yxr6QLUWzsbbukKjOoMKCoCBSh5YspHDUtxAKtStrwx U84za2NyNGDsGuHkfOwWTYv/7OhvVvvnIrw4hW4O4BMnRMeoFVfoqiVC7CWGJafG XNVf0DEMdDA0kNx3QHrKyWP1bESALb2hL+XFeDMBJuNuSBNqDB6P/c6K+70vQgdr exr7Gi1VoDF04cy2qft1c9S+sdQTswkA4Tn6/ynuYsI/0vZmkUFR0fhYr2k4xOTT LAvil9Ln4nDXhAzCJCChGiamOOKsBpEXnexGEh5jnThnSp+7Q0jRwCQhdb+MdI6o w8X24gkhDHX+keOwwcL12pcTXWrZCToXA1BYJaYl2LGsKfkJpUpik9fSJLamdxvN ZXKReSYAJxibchgwYa0G =6lzi -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 16 23:19:40 2013 Received: (at 15100-done) by debbugs.gnu.org; 17 Aug 2013 03:19:40 +0000 Received: from localhost ([127.0.0.1]:35711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VAX3D-0008IJ-Um for submit@debbugs.gnu.org; Fri, 16 Aug 2013 23:19:40 -0400 Received: from world.peace.net ([96.39.62.75]:60011 ident=hope5) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VAX3A-0008I5-0P for 15100-done@debbugs.gnu.org; Fri, 16 Aug 2013 23:19:36 -0400 Received: from 209-6-91-212.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com ([209.6.91.212] helo=tines.lan) by world.peace.net with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1VAX32-0000zO-5x; Fri, 16 Aug 2013 23:19:28 -0400 From: Mark H Weaver To: =?utf-8?Q?G=C3=B6ran?= Weinholt Subject: Re: bug#15100: Division by zero in bytevector->uint-list References: <87li438bev.fsf@industria.weinholt.se> Date: Fri, 16 Aug 2013 23:19:15 -0400 In-Reply-To: <87li438bev.fsf@industria.weinholt.se> (=?utf-8?Q?=22G=C3=B6r?= =?utf-8?Q?an?= Weinholt"'s message of "Thu, 15 Aug 2013 13:02:16 +0200") Message-ID: <87pptdgg24.fsf@tines.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 15100-done Cc: 15100-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) G=C3=B6ran Weinholt writes: > 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. Fixed in 088cfb7d761b01a2620d78f10e8dbcaa07485a32. > These procedures also do not check that the length of the bytevector > is divisible by the size. I don't think we can fix this in stable-2.0, because some existing code might depend on our current permissive behavior. However, I fixed it on the master branch in c099201da1de71652b9791fb0a3a863b6d3c355d. Thanks! Mark From unknown Sat Jun 21 10:39:07 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 14 Sep 2013 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator