This is the mail archive of the
xconq7@sources.redhat.com
mailing list for the Xconq project.
Accepts invalid data in game files without even a warning.
- To: xconq-gnats at sources dot redhat dot com
- Subject: Accepts invalid data in game files without even a warning.
- From: sigra at home dot se
- Date: 10 Mar 2001 18:35:19 -0000
- CC: xconq7 at sources dot redhat dot com
- Reply-To: sigra at home dot se
>Category: xconq
>Synopsis: Accepts invalid data in game files without even a warning.
>Confidential: no
>Severity: non-critical
>Priority: medium
>Class: sw-bug
>Submitter-Id: net
>Originator: Erik Sigra
>Release: Current CVS
>Environment:
Linux-2.4.2, gcc-2.95.2
>Description:
(namer krevi-place-names
(random Elgaland Vargaland)
This text is
(garbage data)
but Xconq doesn't give any error message
(or warning at all when it reads this file).
I can ( contine like this
and Xconq will ) maybe even allocate memory for
all this cruft I type.
But maybe it's just a feature? Use the namer form type
to add comments without the need for semicolon or nested
comments? Perhaps useful for keyboards were thoose keys are missing.
)
(set see-all true)
(unit-type city
(name "city")
(image-name "city20")
(help "A city")
(namer "krevi-place-names")
(acp-per-turn 1)
(vision-range 100)
(start-with 3)
)
(terrain-type default (image-name "black"))
(set sides-min 1)
(set sides-max 1)
(set country-radius-min 20)
>How-To-Repeat:
Run the game above.
>Fix:
Better syntax validation when reading game files.
>Unformatted: