[tor-bugs] #23643 [Core Tor/Tor]: Type-check struct members that are passed to confparse

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Sep 25 20:24:38 UTC 2017


#23643: Type-check struct members that are passed to confparse
--------------------------+------------------------------------
 Reporter:  nickm         |          Owner:  nickm
     Type:  defect        |         Status:  needs_revision
 Priority:  Medium        |      Milestone:  Tor: 0.3.2.x-final
Component:  Core Tor/Tor  |        Version:
 Severity:  Normal        |     Resolution:
 Keywords:                |  Actual Points:
Parent ID:                |         Points:
 Reviewer:  catalyst      |        Sponsor:
--------------------------+------------------------------------

Comment (by catalyst):

 Oh, a close reading of C99 ยง6.6 does imply that could be a problem.
 Address constants should be OK, though, so making `var_type_dummy` an
 instance of a union of pointers to all possible types and using named
 member assignment with the address of the member of the static object
 might work?

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


More information about the tor-bugs mailing list