[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #28120 [Core Tor/Tor]: hs_descriptor: CID 1440368: Incorrect expression (SIZEOF_MISMATCH)
#28120: hs_descriptor: CID 1440368: Incorrect expression (SIZEOF_MISMATCH)
------------------------------+-----------------------------
Reporter: asn | Owner: (none)
Type: defect | Status: new
Priority: Medium | Milestone:
Component: Core Tor/Tor | Version:
Severity: Normal | Keywords: coverity tor-hs
Actual Points: | Parent ID:
Points: | Reviewer:
Sponsor: |
------------------------------+-----------------------------
{{{
*** CID 1440368: Incorrect expression (SIZEOF_MISMATCH)
/src/feature/hs/hs_descriptor.c: 2954 in hs_desc_build_authorized_client()
2948
HS_DESC_COOKIE_KEY_BIT_SIZE);
2949 /* This can't fail. */
2950 crypto_cipher_encrypt(cipher, (char *)
client_out->encrypted_cookie,
2951 (const char *) descriptor_cookie,
2952 HS_DESC_DESCRIPTOR_COOKIE_LEN);
2953
>>> CID 1440368: Incorrect expression (SIZEOF_MISMATCH)
>>> Passing argument "keystream" of type "uint8_t *" and argument "8UL
/* sizeof (keystream) */" to function "memwipe" is suspicious.
2954 memwipe(keystream, 0, sizeof(keystream));
2955 tor_free(keystream);
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/28120>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs