URL:
  <https://savannah.gnu.org/patch/?10617>

                 Summary: [PATCH 17/31] primutl.c: sign-extend the arity read
from a fasl primitive table
                   Group: MIT/GNU Scheme
               Submitter: barak
               Submitted: Thu 24 Sep 2026 04:33:21 PM UTC
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email:
             Open/Closed: Open
         Discussion Lock: Unlocked


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Thu 24 Sep 2026 04:33:21 PM UTC By: Barak A. Pearlmutter <barak>
1af310d89 changed it from FIXNUM_TO_LONG to FIXNUM_TO_ULONG.  The value
then goes into an int: on 64-bit the datum for -1 (2^58-1) truncates
back to -1 and nothing notices; on 32-bit it is 67108863, no lexpr
primitive matches, and every fasload fails with wrong-arity-primitives
before the runtime has even booted.






    _______________________________________________________
File Attachments:

Name: 0017-primutl.c-sign-extend-the-arity-read-from-a-fasl-pri.patch Size:
1.1KiB

<https://file.savannah.gnu.org/file/0017-primutl.c-sign-extend-the-arity-read-from-a-fasl-pri.patch?file_id=59008>



    AGPL NOTICE

These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://savannah.gnu.org/source/savane-2ce82de06cddf3c312e2e260f2c97db720d76efc.tar.gz

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/patch/?10617>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to