[tor-bugs] #2031 [Tor Client]: gcc warning : not protecting function: no buffer at least 8 bytes long

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Sat Oct 9 18:12:06 UTC 2010


#2031: gcc warning : not protecting function: no buffer at least 8 bytes long
-----------------+----------------------------------------------------------
 Reporter:  keb  |        Type:  defect                                   
   Status:  new  |    Priority:  normal                                   
Milestone:       |   Component:  Tor Client                               
  Version:       |    Keywords:  debian --gcc-hardening --linker-hardening
   Parent:       |  
-----------------+----------------------------------------------------------

Comment(by Sebastian):

 {{{
 Interesting. I wonder if the warning is bogus.
 It happens because we do this:
   char hdr[VAR_CELL_HEADER_SIZE]; where VAR_CELL_HEADER_SIZE is 5
 }}}

 In theory we're setting stack-protector-all, so this warning should not
 happen.

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


More information about the tor-bugs mailing list