-
Notifications
You must be signed in to change notification settings - Fork 571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PerlIO::via modules exhibit buffer leakage when READ doesn't touch $buffer #13304
Comments
From @kentfredricCreated by @kentfredricI discovered accidentally, that if you're writing a PerlIO layer with In the given example on my machine, the contents of XSLoader.pm are spewed ---- { sub PUSHED { open my read $fh, ( my $buf ), 1024; print $buf; --- The failure still occurs without any of the aforementioned "use" statements, different values of "use" will result in different output. Perl Info
|
From @kentfredricI should also note, even assigning to $buffer doesn't help you. It just assumes you're not lying when you return $length So as long as $length > length($buffer), corruption will be seen. |
The RT System itself - Status changed from 'new' to 'open' |
From @kentfredricMore, if you change the return to a fixed number such as 1024, and then |
From @kentfredric |
From @LeontOn Mon Sep 23 08:54:16 2013, kentfredric@gmail.com wrote:
The bug is in PerlIOVia_read. It's doing a two things wrong: Leon |
Migrated from rt.perl.org#119961 (status was 'open')
Searchable as RT119961$
The text was updated successfully, but these errors were encountered: