[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 nickm):
> Instead of using a null pointer, use the address of a static object of
the appropriate type. We presumably don't care too much about the extra
memory footprint if we're building test code.
Hm. This part might be harder to do. When I try to do this approach, I
get an error: "initializer element is not computable at load time".
Apparently comparing the addresses of members of two static objects is not
something I can stick into an initializer?
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/23643#comment:6>
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