trusty - five-or-more possible buggy

nagy peter nagypdigger at gmail.com
Sun Feb 26 14:26:02 UTC 2017


Hello,

http://packages.ubuntu.com/trusty/five-or-more
DLd source package.tar.gz, the patches were irrelevant.

In the glines.c, I miss an unhandled case: when all balls are removed
during a gameplay. Conjectured that it will hang when there are no
balls on the grid.

//inspected two suspicious functions - this could be a possible workaround:

spaces_left:
...
    return (j % (hfieldsize * vfieldsize));
,,,

//or even better:

check_gameover:
...
  if (spaces_left () > 0 && spaces_left () < (hfieldsize * vfieldsize) )
    return 1;
...

//Thanks and regards

//NP



More information about the Ubuntu-motu mailing list