[Bug 1011333] New: PerlIO::via leaks a foreign memory

bugzilla at redhat.com bugzilla at redhat.com
Tue Sep 24 06:24:04 UTC 2013


https://bugzilla.redhat.com/show_bug.cgi?id=1011333

            Bug ID: 1011333
           Summary: PerlIO::via leaks a foreign memory
           Product: Fedora
           Version: 18
         Component: perl
          Assignee: jplesnik at redhat.com
          Reporter: ppisar at redhat.com
        QA Contact: extras-qa at fedoraproject.org
                CC: cweyl at alumni.drew.edu, iarnell at gmail.com,
                    jplesnik at redhat.com, kasal at ucw.cz,
                    perl-devel at lists.fedoraproject.org, ppisar at redhat.com,
                    psabata at redhat.com, rc040203 at freenet.de,
                    tcallawa at redhat.com



This simple test:


#!/usr/bin/perl
use strict;
use warnings;
#use utf8;

{
  package PerlIO::via::Bug;

  sub PUSHED {
    return bless {}, $_[0];
  }
  sub READ {
    return $_[2];
  }
}

open my $fh, '<:raw:via(Bug)', '/dev/null' or die "Cannot open, $! $?";
read $fh, ( my $buf ), 1024;
print $buf;


accesses foreign data (and puts them into $buf and prints them). All perls are
affected, the specific output depends on perl version and on the "use utf8"
pragma. Valgrinds warns on write(2) with uninitialized memory.

Reported to upstream as
<https://rt.perl.org/rt3//Public/Bug/Display.html?id=119961>.

All Fedoras are affected.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=5fpvmuMaSf&a=cc_unsubscribe



More information about the perl-devel mailing list