You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The spec says that the length needs to be set on the return, so the length check is superfluous and the copy is missing from the else which then returns whatever was in memory and not the signature
Log(LogLevel_Debug, "Signed successfully signature.size=[%zu]\n", signatureText.size);
if (*siglen == signatureText.size)
{
memcpy(sig, signatureText.memory, signatureText.size);
}
else
{
Log(LogLevel_Debug, "size prob = %zu\n", signatureText.size);
memcpy(sig, signatureText.memory, signatureText.size); // The spec says copy and set the length.
*siglen = signatureText.size;
}
The text was updated successfully, but these errors were encountered:
The spec says that the length needs to be set on the return, so the length check is superfluous and the copy is missing from the else which then returns whatever was in memory and not the signature
The text was updated successfully, but these errors were encountered: