We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
... std::array<unsigned char, 65> signature_data; int recovery_id = 0; secp256k1_ecdsa_recoverable_signature_serialize_compact( secp_ctx(), signature_data.data(), &recovery_id, &signature);
signature_data.back() = static_cast<unsigned char>(recovery_id); BinaryDataPtr result;
make_binary_data_from_bytes( signature_data.data(), signature_data.size(), reset_sp(result))); ...
The signature_data.data() will be truncated when signature_data has '\0' . This rarely happens, but unfortunately it does.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
...
std::array<unsigned char, 65> signature_data;
int recovery_id = 0;
secp256k1_ecdsa_recoverable_signature_serialize_compact(
secp_ctx(), signature_data.data(), &recovery_id, &signature);
make_binary_data_from_bytes(
signature_data.data(), signature_data.size(),
reset_sp(result)));
...
The signature_data.data() will be truncated when signature_data has '\0' .
This rarely happens, but unfortunately it does.
The text was updated successfully, but these errors were encountered: