Skip Menu |

This queue is for tickets about the Games-Sudoku CPAN distribution.

Report information
The Basics
Id: 53499
Status: resolved
Priority: 0/
Queue: Games-Sudoku

People
Owner: kulesha [...] gmail.com
Requestors: FANY [...] cpan.org
Cc: 571270 [...] rt.noris.net
AdminCc:

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



CC: 571270 [...] rt.noris.net
Subject: invalid data causes infinite loop
Games::Sudoku seems to run in an (at least practically) infinite loop when fed with invalid data, e.g.:



use Games::Sudoku::Board;

my @board = qw(
                0 0 0 0 0 0 0 0 0
                0 0 0 0 0 0 0 0 0
                0 0 0 0 0 0 0 0 0
                0 0 0 0 0 0 0 0 0
                0 0 0 0 0 0 0 0 0
                0 0 0 0 0 0 0 3 3
                0 2 0 0 3 0 0 0 0
                0 0 0 0 0 0 0 0 0
                0 0 0 0 0 0 0 0 0
              );

my $game = Games::Sudoku::Board->new( foo => 1 );
$game->init(\@board);
$game->solve;



I'm not sure if you'll consider this a bug, but at least it prevents me from using the module on a public website.

Regards,
fany

thanks for trying out the module

will put a fix in shortly

cheers

Eugene
added extra error checks the new release 1.00 is on CPAN