GNU bug report logs - #41204
port-revealed count is initially > 30000

Previous Next

Package: guile;

Reported by: Caleb Ristvedt <caleb.ristvedt <at> cune.org>

Date: Tue, 12 May 2020 10:33:02 UTC

Severity: important

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Caleb Ristvedt <caleb.ristvedt <at> cune.org>
To: 41204 <at> debbugs.gnu.org
Subject: bug#41204: port-revealed count is initially > 30000
Date: Tue, 12 May 2020 05:32:07 -0500
(port-revealed (open-input-file "/dev/null"))
=> 32539

The little investigating I've done so far suggests that this is because
scm_i_fdes_to_port calls scm_gc_malloc_pointerless and initializes only
the 'fdes' and 'options' fields, leaving 'revealed' uninitialized. The
comment above scm_gc_malloc_pointerless does a good job of explaining
why this is an issue:

/* Allocate SIZE bytes of memory whose contents should not be scanned
   for pointers (useful, e.g., for strings).  Note though that this
   memory is *not* cleared; be sure to initialize it to prevent
   information leaks.  */

This issue appears to be present both in the 2.2 and 3.0 releases
packaged in guix.

- reepca




This bug report was last modified 5 years and 9 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.