Vote count:
0
I am driving me crazy with this problem, anyone can help me please:
void HapServer::_processPairStepTwo(tlv_payload payload) {
debug("Process pair step two... M3+M4");
// tlv_dump(&payload);
SRP_RESULT rc;
cstr *server_proof = NULL;
cstr *secret_key = NULL;
const unsigned char *A = reinterpret_cast<unsigned char *>(payload.record(TLV_PUBKEY).data);
const unsigned char *M1 = reinterpret_cast<unsigned char *>(payload.record(TLV_PROOF).data);
rc = SRP_compute_key(srp_server, &secret_key, A, payload.record(TLV_PUBKEY).size);
check(SRP_OK(rc), "SRP_compute_key failed");
When I run it, I have
*** glibc detected *** /path/to/binary: malloc(): memory corruption: 0x0128c5c8 ***
asked 18 secs ago
malloc(): memory corruption: 0x0128c5c8
Aucun commentaire:
Enregistrer un commentaire