[tor-bugs] #24914 [Core Tor/Tor]: Maybe make relay_digest_matches() not use tor_malloc()
Tor Bug Tracker & Wiki
blackhole at torproject.org
Thu Jan 25 15:18:57 UTC 2018
#24914: Maybe make relay_digest_matches() not use tor_malloc()
--------------------------+------------------------------------
Reporter: dgoulet | Owner: nickm
Type: defect | Status: needs_revision
Priority: Medium | Milestone: Tor: 0.3.4.x-final
Component: Core Tor/Tor | Version:
Severity: Normal | Resolution:
Keywords: tor-relay | Actual Points:
Parent ID: | Points:
Reviewer: dgoulet | Sponsor:
--------------------------+------------------------------------
Comment (by Hello71):
also, this is the only non-test caller of crypto_digest_assign, so it
seems that we could obsolete that.
also, I'm suspicious of the memset(0). I don't totally understand, but
either this is security-critical, and we should use memwipe, or it isn't,
and don't bother zeroing it at all. I suspect gcc will optimize this
memset out anyways.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/24914#comment:4>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list