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

Re: [tor-bugs] #17658 [Tor]: Check buffer lengths and HMAC return value in crypto.c



#17658: Check buffer lengths and HMAC return value in crypto.c
--------------------+------------------------------------
 Reporter:  teor    |          Owner:
     Type:  defect  |         Status:  needs_review
 Priority:  High    |      Milestone:  Tor: 0.2.8.x-final
Component:  Tor     |        Version:
 Severity:  Normal  |     Resolution:
 Keywords:          |  Actual Points:
Parent ID:          |         Points:
  Sponsor:          |
--------------------+------------------------------------

Comment (by nickm):

 I like 1ece83aa and fe5f43b0 just fine, but the one with all the new
 asserts looks maybe-wrong to me.  The reason that we had to
 tor_assert(len<INT_MAX) in some cases before was that we were about to
 cast len to int in order to pass it to an openssl API that was written to
 accept int rather than size_t.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/17658#comment:3>
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