This is the mail archive of the xconq7@sources.redhat.com mailing list for the Xconq project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Accepts invalid data in game files without even a warning.


>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]