#129996 bsdgames: hangman enters infinite loop if words in wordfile are too short

Package:
bsdgames
Source:
bsdgames
Description:
collection of classic textual unix games
Submitter:
Mark
Date:
2005-07-18 04:07:30 UTC
Severity:
normal
#129996#5
Date:
2002-01-19 18:34:38 UTC
From:
To:
When using a wordfile with no words longer than the minimum word length
as set at compile time in hangman.h,  hangman enters an infinite loop.

eg., with the following words:

a
b
c
d
e

saved as words, the following will loop forever:

hangman -d words

Mark Kent

#129996#8
Date:
2002-01-19 23:07:45 UTC
From:
To:
There are definitly problems with hangman's getword(), as this and the
next bug report show.

I think that function would need a rewrite to fix this.
----- Forwarded message from Mark <mark@otford.kent.btinternet.co.uk> ----- From: Mark <mark@otford.kent.btinternet.co.uk> Date: Sat, 19 Jan 2002 18:34:38 +0000 To: submit@bugs.debian.org Subject: Bug#129996: bsdgames: hangman enters infinite loop if words in wordfile are too short Reply-To: Mark <mark@otford.kent.btinternet.co.uk>, 129996@bugs.debian.org X-Spam-Status: No, hits=-2 required=5 tests=FORGED_RCVD_FOUND,DEBIAN_BTS,B UGS_DEBIAN_ORG Package: Bsdgames Version: 2.9-3 When using a wordfile with no words longer than the minimum word length as set at compile time in hangman.h, hangman enters an infinite loop. eg., with the following words: a b c d e saved as words, the following will loop forever: hangman -d words Mark Kent
----- End forwarded message -----