[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs