Skip Menu |
 

This queue is for tickets about the Text-SimpleTable CPAN distribution.

Report information
The Basics
Id: 47546
Status: resolved
Priority: 0/
Queue: Text-SimpleTable

People
Owner: Nobody in particular
Requestors: depesz [...] depesz.com
Cc:
AdminCc:

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



Subject: infinite loop for small widths of column
Download (untitled) / with headers
text/plain 679b
When I run this code: perl -e 'use Text::SimpleTable; my $table = Text::SimpleTable->new( [ 2, 'Plugin' ], )' it works nicely. exits. but when I run this: perl -e 'use Text::SimpleTable; my $table = Text::SimpleTable->new( [ 1, 'Plugin' ], )' the code enters some infinite loop, and eats all of memory. It seems to be that the loop is in _wrap function, in here: while (length $part > $width) { my $subtext; $subtext = substr $part, 0, $width - length($WRAP), ''; push @cache, "$subtext$WRAP"; } Unfortunately I can't debug it more due to project time constraints, but I thought that it's better that you know about it.
Thanks, fixed.


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.