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:
Caolán McNamara 2024-05-26 21:35:23 +01:00
parent 24f65bf594
commit b1a6bd87b8

View file

@ -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;
}