diff options
author | Littleboy | 2011-04-24 22:45:36 -0400 |
---|---|---|
committer | Littleboy | 2011-04-24 22:45:36 -0400 |
commit | ea9774f689a36e967c481c56999075671d2463b7 (patch) | |
tree | 81a1b1017a8b1a3dab6828434b2ee2d0f629568a /gui/message.h | |
parent | de5ec741ffbc491ec33100f7b60d1e4928e8f302 (diff) | |
download | scummvm-rg350-ea9774f689a36e967c481c56999075671d2463b7.tar.gz scummvm-rg350-ea9774f689a36e967c481c56999075671d2463b7.tar.bz2 scummvm-rg350-ea9774f689a36e967c481c56999075671d2463b7.zip |
GUI: Add basic validity check to ThemeEngine::themeConfigParseHeader (workaround for #3103051)
When loading a corrupted zip, the data returned for THEMERC will be garbage, which will cause an assert in isspace() when trying to trim the data.
This checks that the first character of the header is in the range [0;127] and bails out if not.
Diffstat (limited to 'gui/message.h')
0 files changed, 0 insertions, 0 deletions