(svn r14610) -Fix [FS#2415]: possible stack corruption when reading corrupted sprites.

-Change: harden the sprite reading routine against corrupt sprites.
This commit is contained in:
rubidium
2008-11-23 13:42:05 +00:00
parent 150fd2a49f
commit 2fec4d8e3c
3 changed files with 56 additions and 3 deletions

View File

@@ -3234,6 +3234,7 @@ STR_NEWGRF_ERROR_STATIC_GRF_CAUSES_DESYNC :Loading {RAW_ST
STR_NEWGRF_ERROR_UNEXPECTED_SPRITE :Unexpected sprite.
STR_NEWGRF_ERROR_UNKNOWN_PROPERTY :Unknown Action 0 property.
STR_NEWGRF_ERROR_INVALID_ID :Attempt to use invalid ID.
STR_NEWGRF_ERROR_CORRUPT_SPRITE :{YELLOW}{RAW_STRING} contains a corrupt sprite. All corrupt sprites will be shown as a red question mark (?).
STR_NEWGRF_PRESET_LIST_TIP :{BLACK}Load the selected preset
STR_NEWGRF_PRESET_SAVE :{BLACK}Save preset