Skip Menu |
 

This queue is for tickets about the Crypt-GeneratePassword CPAN distribution.

Report information
The Basics
Id: 42832
Status: resolved
Priority: 0/
Queue: Crypt-GeneratePassword

People
Owner: NEILB [...] cpan.org
Requestors: singlespeeder [...] btinternet.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.03
Fixed in: 0.04



Subject: Divide by zero error in word and word3
Download (untitled) / with headers
text/plain 735b
In the algorithm for word and word3 when generating passwords which include digits and symbols a divide by zero error occurs if $randword contains no characters: lines 141 and 189 $stripped =~ s/[\Q$signs\E]//g; # if $stripped consists only of # characters in $signs then # $stripped => "" and # length($stripped) => 0 lines 165 and 211 fail: redo if $sum/length$(stripped) < $avgfreq; # divide by zero ----------- Seen on Module version: 0.03 Perl versions: v5.8.8 built for MSWin32-x86-multi-thread, v5.8.8 built for i386-linux-thread-multi OS: Windows XP SP2, Linux 2.6.18-92.1.22.el5 i386 GNU/Linux (CentOS5.2)
Subject: patch
Download patch
application/octet-stream 104b

Message body not shown because it is not plain text.

Fixed in 0.04 - thanks. Neil


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.