Treat base64 key EOF as successful decode

This commit is contained in:
OpenAI Build Bot
2026-06-05 19:55:14 +00:00
committed by Mario Fetka
parent b02c348124
commit a8f9e7e9ab

View File

@@ -1539,7 +1539,15 @@ RCODE F_CCS::setKeyFromStore(
if( RC_BAD( rc = B64Decoder.read(
(void *)pucKeyBuf, ui32BufLen, &uiLength)))
{
goto Exit;
if( rc != FERR_EOF_HIT)
{
goto Exit;
}
// F_Base64DecoderIStream signals end-of-stream with EOF after
// returning the decoded bytes. In this path EOF is a successful
// completion, not a failed key decode.
rc = FERR_OK;
}
pucTmp = pucKeyBuf;
}