[tor-bugs] #13280 [Tor]: Stop signed left shift overflows in ed25519
Tor Bug Tracker & Wiki
blackhole at torproject.org
Sun Sep 28 18:30:20 UTC 2014
#13280: Stop signed left shift overflows in ed25519
------------------------+--------------------------------
Reporter: teor | Owner:
Type: defect | Status: needs_review
Priority: major | Milestone: Tor: 0.2.6.x-final
Component: Tor | Version: Tor: unspecified
Resolution: | Keywords: tor-router ed25519
Actual Points: | Parent ID:
Points: |
------------------------+--------------------------------
Comment (by teor):
Nick, your script looks like it does the opposite of cpp -E
-DUNSAFE_SIGNED_LSHIFT (which is handy).
The only existing (relevant) left shifts that it misses are two performed
on signed char types in ge_scalarmult_base.c. I had also missed one of
these. (I've attached a patch which standardises both of these shifts
using new SHL8().)
All other left shifts are performed on (signed) constants or unsigned
types.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/13280#comment:9>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list