ofz: Use-of-uninitialized-value in ImplConvertUtf8ToUnicode
probably since:
commit 08e78607ec
Date: Wed Sep 13 08:28:32 2017 +0200
Make reading UTF-8 strict
Change-Id: I4754e8c1314d37c7a863db4a1d9823d53fb343f1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168079
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
This commit is contained in:
parent
24f65bf594
commit
b1a6bd87b8
1 changed files with 1 additions and 0 deletions
|
@ -56,6 +56,7 @@ void ImplResetUtf8ToUnicodeContext(void * pContext)
|
|||
{
|
||||
if (pContext != nullptr)
|
||||
{
|
||||
static_cast< ImplUtf8ToUnicodeContext * >(pContext)->nBytes = int();
|
||||
static_cast< ImplUtf8ToUnicodeContext * >(pContext)->nShift = -1;
|
||||
static_cast< ImplUtf8ToUnicodeContext * >(pContext)->bCheckBom = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue