From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.bugs Subject: bug#13827: faulty range check in bytevector accessor Date: Wed, 27 Feb 2013 12:42:50 +0100 Message-ID: <87r4k2x9s5.fsf@gnu.org> References: <87liaay0o1.fsf@Kagami.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1361965399 13121 80.91.229.3 (27 Feb 2013 11:43:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Feb 2013 11:43:19 +0000 (UTC) Cc: 13827@debbugs.gnu.org To: Ian Price Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Feb 27 12:43:42 2013 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UAfQC-0001PC-NB for guile-bugs@m.gmane.org; Wed, 27 Feb 2013 12:43:40 +0100 Original-Received: from localhost ([::1]:56546 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAfPr-0002Cq-Mi for guile-bugs@m.gmane.org; Wed, 27 Feb 2013 06:43:19 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58980) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAfPo-0002Ck-5a for bug-guile@gnu.org; Wed, 27 Feb 2013 06:43:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UAfPl-0002yl-4Z for bug-guile@gnu.org; Wed, 27 Feb 2013 06:43:16 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47293) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAfPl-0002yf-0y for bug-guile@gnu.org; Wed, 27 Feb 2013 06:43:13 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UAfRW-0001MO-3h for bug-guile@gnu.org; Wed, 27 Feb 2013 06:45:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 27 Feb 2013 11:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13827 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 13827-submit@debbugs.gnu.org id=B13827.13619654885188 (code B ref 13827); Wed, 27 Feb 2013 11:45:01 +0000 Original-Received: (at 13827) by debbugs.gnu.org; 27 Feb 2013 11:44:48 +0000 Original-Received: from localhost ([127.0.0.1]:52757 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UAfRH-0001Ld-LF for submit@debbugs.gnu.org; Wed, 27 Feb 2013 06:44:48 -0500 Original-Received: from xanadu.aquilenet.fr ([88.191.123.111]:42324) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UAfRC-0001LN-02 for 13827@debbugs.gnu.org; Wed, 27 Feb 2013 06:44:42 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by xanadu.aquilenet.fr (Postfix) with ESMTP id D4947BE6C; Wed, 27 Feb 2013 12:42:50 +0100 (CET) Original-Received: from xanadu.aquilenet.fr ([127.0.0.1]) by localhost (xanadu.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dMEcf3+bvdb4; Wed, 27 Feb 2013 12:42:50 +0100 (CET) Original-Received: from pluto (pluto.sophia.inria.fr [138.96.204.192]) by xanadu.aquilenet.fr (Postfix) with ESMTPSA id 95D17162D; Wed, 27 Feb 2013 12:42:50 +0100 (CET) X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 9 =?UTF-8?Q?Vent=C3=B4se?= an 221 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu In-Reply-To: <87liaay0o1.fsf@Kagami.home> (Ian Price's message of "Wed, 27 Feb 2013 02:02:06 +0000") User-Agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:6799 Archived-At: Ian Price skribis: > Branch: master > Commit: 9b977c836bf147d386944c401113aba32776fa68 > System: 32 bit x86 Fedora 16 > > (use-modules (rnrs bytevectors)) > (define not-32-bit (expt 2 32)) > (define bv (make-bytevector 4)) > (bytevector-u32-set! bv 0 not-32-bit (endianness big)) > (pk bv) FWIW, with 2.0.7+ on x86_64-linux-gnu, with GMP 5.1.0: --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> (use-modules (rnrs bytevectors)) scheme@(guile-user)> (define not-32-bit (expt 2 32)) scheme@(guile-user)> (define bv (make-bytevector 4)) scheme@(guile-user)> (bytevector-u32-set! bv 0 not-32-bit (endianness big)) :4:0: In procedure #:4:0= ()>: :4:0: In procedure bytevector-u32-set!: Value out of range: 4= 294967296 Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. --8<---------------cut here---------------end--------------->8--- As Mark pointed out, it could be due to the GMP version you=E2=80=99re usin= g. Could you check that? TIA, Ludo=E2=80=99.