1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 12:03:07 +01:00
Files
OpenRCT2/src/localisation
Daniel Kamil Kozar 1a521c53fb Fix out-of-bounds access in convert_multibyte_charset
convert_multibyte_charset unconditionally assumes that a 0xFF is always
followed by two more bytes. This is not the case with BATFL.DAT, whose
string at offset 0x2D6 (languageId = 0xA) ends with bytes 0xFF, 0xC2,
0x00. Therefore, it seems like 0x00 is used as both the string terminator
and the second byte of a multicharacter sequence in this case.

This commit does not change the original behaviour at all, and prevents
the code from looking for a 0x00 after the string actually ends.
2016-12-28 17:50:03 +00:00
..
2016-08-27 23:32:15 +01:00
2016-09-03 21:25:19 +01:00
2016-09-04 21:19:19 +02:00
2016-12-24 13:10:03 +01:00
2016-05-22 21:48:13 +02:00
2016-09-10 23:56:50 +01:00
2016-11-27 23:25:59 +00:00