diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-06-17 23:28:44 +0200 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2018-06-24 20:31:14 +0200 |
commit | db0dd54c376eb25263059075e5103f0849ef2ffe (patch) | |
tree | c09508b373812d440aca2149e40e98612ffe291e /android-mobile | |
parent | 879cb73b8bda364f63cc97c0f9963cfddc581add (diff) | |
download | subsurface-db0dd54c376eb25263059075e5103f0849ef2ffe.tar.gz |
Localization: make cache thread safe and robust against use-after-free
The old trGettext() was not thread-safe and the returned C-strings
could be freed in the case of empty translations strings. Therefore:
1) Introduce a mutex protecting access to the cache.
2) Never change existing entries, even if the translation string is empty.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'android-mobile')
0 files changed, 0 insertions, 0 deletions