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

                 Summary: [PATCH 28/31] Zero the slack at the end of
bytevectors and legacy strings
                   Group: MIT/GNU Scheme
               Submitter: barak
               Submitted: Thu 24 Sep 2026 06:04:28 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 06:04:28 PM UTC By: Barak A. Pearlmutter <barak>
set_bytevector_length and set_legacy_string_length wrote only the
terminating byte, leaving the rest of the last allocated word as
whatever was in the heap.  Nothing reads it, but fasdump writes whole
words, so that garbage was landing in .bin and .com files: it made the
output differ between builds, and it leaked heap contents.

Zero to the end of the allocation instead.






    _______________________________________________________
File Attachments:

Name: 0028-Zero-the-slack-at-the-end-of-bytevectors-and-legacy-.patch Size:
1.9KiB

<https://file.savannah.gnu.org/file/0028-Zero-the-slack-at-the-end-of-bytevectors-and-legacy-.patch?file_id=59021>



    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/?10628>

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

Attachment: signature.asc
Description: PGP signature

Reply via email to