OpenTTD

Tasklist

FS#5333 - GSNews.Create() may cause critical failure and crash.

Attached to Project: OpenTTD
Opened by L.Schmitz (Aphid) - Friday, 12 October 2012, 12:57 GMT
Last edited by Thijs Marinussen (Yexo) - Sunday, 14 October 2012, 15:19 GMT
Type Bug
Category Script → Goal/Game script
Status Closed
Assigned To No-one
Operating System All
Severity High
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

If a GSText object is created that holds a lot of arguments through concatenation of smaller GSText objects, and this object is then passed onto GSNews, it may crash the entire game due to an assertion failure at line 127.

The attached script is a minimal example that will cause this issue.
This task depends upon

Closed by  Thijs Marinussen (Yexo)
Sunday, 14 October 2012, 15:19 GMT
Reason for closing:  Fixed
Additional comments about closing:  In r24593
Comment by L.Schmitz (Aphid) - Friday, 12 October 2012, 13:01 GMT
Note: Not posting the news message (just creating the string) does not cause a crash.

Loading...