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

[tor-bugs] #22410 [Core Tor/Tor]: ensure that uint8_t is unsigned char



#22410: ensure that uint8_t is unsigned char
------------------------------+--------------------------------
     Reporter:  catalyst      |      Owner:  catalyst
         Type:  defect        |     Status:  new
     Priority:  Medium        |  Milestone:  Tor: 0.3.2.x-final
    Component:  Core Tor/Tor  |    Version:
     Severity:  Normal        |   Keywords:
Actual Points:                |  Parent ID:  #6877
       Points:                |   Reviewer:
      Sponsor:                |
------------------------------+--------------------------------
 On a POSIX platform, uint8_t is required to exist, but not explicitly
 required to be identical to unsigned char.  It's theoretically possible
 that a very unusual platform could have an extension integer type that it
 defines as uint8_t.  Test for this at configure time.

 This supports an effort to move toward using uint8_t as the "byte" type in
 preference to char (which is often a signed type and can cause bugs
 related to signed arithmetic).

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