[tor-bugs] #27208 [Core Tor/Tor]: add API for allocating aligned memory

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Aug 20 22:45:03 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):

 It might be incorrect to treat malloc(sz) as meaning aligned_malloc(sz,1).
 malloc() is required to return memory that is aligned suitably for any
 built-in type, whereas aligned_malloc(sz,1) doesn't have that requirement,
 FWICT.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/27208#comment:6>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list