diff options
author | Peter Kohaut | 2019-07-18 00:40:31 +0200 |
---|---|---|
committer | Peter Kohaut | 2019-07-18 01:00:01 +0200 |
commit | 377cf606dd6c0e071907c263ffecd37a63ba96e7 (patch) | |
tree | 0260ab00d69fda0eba049c086cc9e8c82490329a /engines | |
parent | afb9ff00484ce9aa5cd53afec826f211fd569809 (diff) | |
download | scummvm-rg350-377cf606dd6c0e071907c263ffecd37a63ba96e7.tar.gz scummvm-rg350-377cf606dd6c0e071907c263ffecd37a63ba96e7.tar.bz2 scummvm-rg350-377cf606dd6c0e071907c263ffecd37a63ba96e7.zip |
COMMON: Fix U32String initialization issues
Bug 1:
If the original C string contained chars > 127 they would be stored
as huge u32 numbers due to the underflow as char is signed.
It still might end-up with invalid UTF32 characters, but now the caller
can control it.
Bug 2:
The inline storage was not properly initialized when U32String was
initalized from shorter non-UTF32 strings.
Diffstat (limited to 'engines')
0 files changed, 0 insertions, 0 deletions