[tor-bugs] #13696 [Tor]: Use syscall-based entropy reading where possible.

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Dec 9 09:39:48 UTC 2015


#13696: Use syscall-based entropy reading where possible.
-------------------------+------------------------------------
 Reporter:  nickm        |          Owner:  yawning
     Type:  enhancement  |         Status:  reopened
 Priority:  Medium       |      Milestone:  Tor: 0.2.8.x-final
Component:  Tor          |        Version:
 Severity:  Normal       |     Resolution:
 Keywords:  tor-relay    |  Actual Points:
Parent ID:               |         Points:
  Sponsor:               |
-------------------------+------------------------------------

Comment (by cypherpunks):

 Replying to [comment:21 yawning]:
 > My gcc doesn't have "-Wshorten-64-to-32".  This is completely harmless,
 I assume out_len just needs an explicit cast to int.  If the compiler were
 smarter it would see that, it's impossible for out_len to be big enough to
 where this warning has an impact, but so it goes.
 >
 > Edit: Oh, it's a clang-ism.

 I'm thinking it's about the return value of `syscall`. According to the
 manual `syscall` returns a `long` but it's assigned to an `int`.

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


More information about the tor-bugs mailing list