QCBOREncode_FinishGetSize does not set the second argument if the output buffer is too small:
Internally, QCBOREncode_FinishGetSize checks for QCBOR_SUCCESS to set the encoding length, but on small buffers QCBOR_ERR_BUFFER_TOO_SMALL is instead returned, and the encoding length is not set.
Workaround for BSL ASB encoding: set the buffer to be as large as needed for test fixtures
QCBOREncode_FinishGetSizedoes not set the second argument if the output buffer is too small:Internally,
QCBOREncode_FinishGetSizechecks forQCBOR_SUCCESSto set the encoding length, but on small buffersQCBOR_ERR_BUFFER_TOO_SMALLis instead returned, and the encoding length is not set.Workaround for BSL ASB encoding: set the buffer to be as large as needed for test fixtures