[tor-bugs] #27208 [Core Tor/Tor]: add API for allocating aligned memory
Tor Bug Tracker & Wiki
blackhole at torproject.org
Sun Sep 30 19:54:07 UTC 2018
#27208: add API for allocating aligned memory
-----------------------------+------------------------------------
Reporter: cyberpunks | Owner: (none)
Type: enhancement | Status: needs_revision
Priority: Medium | Milestone: Tor: 0.3.6.x-final
Component: Core Tor/Tor | Version:
Severity: Normal | Resolution:
Keywords: rust-wants rust | Actual Points:
Parent ID: #23882 | Points:
Reviewer: dgoulet | Sponsor:
-----------------------------+------------------------------------
Comment (by nickm):
From personal communication from a Rust dev: unless explictly told to do
so in rust, Rust won't try to call the allocator with an alignment greater
than the pointer size. So malloc() should work find, given malloc()'s
guarantees.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/27208#comment:7>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list