[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #23643 [Core Tor/Tor]: Type-check struct members that are passed to confparse
#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs