Skip Menu |
 

This queue is for tickets about the File-Map CPAN distribution.

Report information
The Basics
Id: 127961
Status: new
Priority: 0/
Queue: File-Map

People
Owner: Nobody in particular
Requestors: IKEGAMI [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Should warn on buffer size change
Download (untitled) / with headers
text/plain 557b
The module should issue its "Writing directly to a memory mapped file is not recommended" warning when the buffer is shrunk. $ perl -e'print "\0"x100' >scratch $ perl -MFile::Map=map_file -we' map_file my $map, "scratch", "+<"; substr($map, 0, 100, "3" x 100); substr($map, 98, 2, ""); ' $ od -t x1 scratch 0000000 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 * 0000140 33 33 00 33 0000144 This just requires a small change to the C<< if (SvPVX(var) != info->fake_address) >> check in mmap_write.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.