PARI/GP Bug report logs - #1237
undefined behaviour in pari_init_parser

Package: pari; Maintainer for pari is Aurel Page <aurel.page@normalesup.org>; Source for pari is src:pari.

Reported by: Julian Taylor <jtaylor.debian@googlemail.com>

Date: Wed, 31 Aug 2011 15:33:08 UTC

Severity: normal

Done: Bill Allombert <Bill.Allombert@math.u-bordeaux1.fr>

Bug is archived. No further changes may be made.

Full log


🔗 View this message in rfc822 format

X-Loop: allomber@math.u-bordeaux.fr
Subject: Bug#1237: undefined behaviour in pari_init_parser
Reply-To: Julian Taylor <jtaylor.debian@googlemail.com>, 1237@pari.math.u-bordeaux.fr
Resent-From: Julian Taylor <jtaylor.debian@googlemail.com>
Resent-To: bug-submit-list@pari.math.u-bordeaux.fr
Resent-CC: Karim.Belabas@math.u-bordeaux.fr
Resent-Date: Thu, 01 Sep 2011 21:03:02 UTC
Resent-Message-ID: <handler.1237.B1237.131491085128528@pari.math.u-bordeaux.fr>
Resent-Sender: allomber@math.u-bordeaux.fr
X-PARI/GP-PR-Message: report 1237
X-PARI/GP-PR-Package: pari
X-PARI/GP-PR-Keywords: 
Received: via spool by 1237-submit@pari.math.u-bordeaux.fr id=B1237.131491085128528
          (code B ref 1237); Thu, 01 Sep 2011 21:03:02 UTC
Received: (at 1237) by pari.math.u-bordeaux.fr; 1 Sep 2011 21:00:51 +0000
Received: from mail-fx0-f45.google.com ([209.85.161.45])
	by pari.math.u-bordeaux1.fr with esmtp (Exim 4.69)
	(envelope-from <jtaylor.debian@googlemail.com>)
	id 1QzENX-0007Q5-Cu
	for 1237@pari.math.u-bordeaux.fr; Thu, 01 Sep 2011 23:00:51 +0200
Received: by fxbb27 with SMTP id b27so1492629fxb.32
        for <1237@pari.math.u-bordeaux.fr>; Thu, 01 Sep 2011 14:00:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=googlemail.com; s=gamma;
        h=message-id:date:from:user-agent:mime-version:to:cc:subject
         :references:in-reply-to:content-type:content-transfer-encoding;
        bh=1lDdyJnrumVpUs660l4ZMRihtRq7JbTuIxCVtXqQNzI=;
        b=skRxc2agPw2Vyoe8NL14ma1wcRf9mUHNL/aEc13Tg1Rz2ZKphVLn+0QWBHbYC6zug0
         XInjB74TSfzTQTbVoMG+zpGrgUzritaK49oRIFd/UlnOH7wr1Qbj4IPHANk5P/r8e1Uv
         QO3PksDigNG+USFrUQbzxF1ihwFjdHU7qe6H0=
Received: by 10.223.63.139 with SMTP id b11mr407100fai.87.1314910846031;
        Thu, 01 Sep 2011 14:00:46 -0700 (PDT)
Received: from [192.168.0.11] (p5498C3EA.dip.t-dialin.net [84.152.195.234])
        by mx.google.com with ESMTPS id p11sm104622faa.22.2011.09.01.14.00.44
        (version=SSLv3 cipher=OTHER);
        Thu, 01 Sep 2011 14:00:45 -0700 (PDT)
Message-ID: <4E5FF27B.5080600@googlemail.com>
Date: Thu, 01 Sep 2011 23:00:43 +0200
From: Julian Taylor <jtaylor.debian@googlemail.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0) Gecko/20110828 Thunderbird/7.0
MIME-Version: 1.0
To: Bill Allombert <Bill.Allombert@math.u-bordeaux1.fr>
CC: 1237@pari.math.u-bordeaux.fr
References: <4E5E52C5.4050702@googlemail.com> <20110901202245.GH17070@yellowpig>
In-Reply-To: <20110901202245.GH17070@yellowpig>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
On 09/01/2011 10:22 PM, Bill Allombert wrote:
>
> Hello Julian,
>
> Undefined according to what rule ? The code is only requiring the adress space to be flat
> which is true on all supported platforms.
>

https://www.securecoding.cert.org/confluence/display/seccode/CC.+Undefined+Behavior#CC.UndefinedBehavior-ub45

Although it is possible that it is a compiler bug causing this issue, 
this behavior should be fixed somehow too.



Send a report that this bug log contains spam.


Bill Allombert <allomber@math.u-bordeaux.fr>. Last modified: Sat Aug 26 17:15:11 2023; Machine Name: pari

PARI/GP Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.