tor/src/lib/confmgt
Nick Mathewson 39640728c3 Add comments to try to prevent recurrence of #31495.
There is a bad design choice in two of our configuration types,
where the empty string encodes a value that is not the same as the
default value.  This design choice, plus an implementation mistake,
meant that config_dup() did not preserve the value of routerset_t,
and thereby caused bug #31495.

This comment-only patch documents the two types with the problem,
and suggests that implementors try to avoid it in the future.

Closes ticket 31907.
2019-10-01 09:45:12 -04:00
..
.may_include Add new entries to lib/confmgt ".may_include" file 2019-09-11 10:13:57 -04:00
confparse.c Update #includes to point to confparse.h in its new location. 2019-09-11 10:17:20 -04:00
confparse.h Run "make autostyle" and fix wide lines. 2019-09-16 13:27:42 -04:00
include.am Update include.am files to refer to new location of confparse.[ch] 2019-09-11 10:22:01 -04:00
structvar.c Merge branch 'tor-github/pr/1296' 2019-09-11 09:42:31 -04:00
structvar.h Merge branch 'tor-github/pr/1296' 2019-09-11 09:42:31 -04:00
type_defs.c Add comments to try to prevent recurrence of #31495. 2019-10-01 09:45:12 -04:00
type_defs.h Add a "typed_var" abstraction to implement lvalue access in C. 2019-06-24 17:50:43 -04:00
typedvar.c Replace low-level {var_type,struct_var}_is_*() with flag inspection 2019-09-11 09:42:19 -04:00
typedvar.h Replace low-level {var_type,struct_var}_is_*() with flag inspection 2019-09-11 09:42:19 -04:00
unitparse.c Add unit tests for the unitparse.c module. 2019-06-24 17:50:43 -04:00
unitparse.h Move unit-parsing code to src/lib/confmgt 2019-06-24 15:11:57 -04:00
var_type_def_st.h Add comments to try to prevent recurrence of #31495. 2019-10-01 09:45:12 -04:00