[Swan-commit] Changes to ref refs/heads/master
D. Hugh Redelmeier
hugh at vault.libreswan.fi
Mon Jul 9 06:06:04 UTC 2018
New commits:
commit f28c65e2c5a132562172522a73c88a2fcf4a841e
Author: D. Hugh Redelmeier <hugh at mimosa.com>
Date: Mon Jul 9 01:55:40 2018 -0400
confread: more carefully handle diagnostics
Problems:
- err_t was used for mutable errors
+ for heap-allocated strings: leaks
+ for static-allocated buffers: contents might be overwritten
- multiple errors might cause all but the last to be discarded
- some errors might get lost because they were treated as non-fatal
Solution:
- use a new mechanism for accumulating heap-allocate messages: starter_errors_t
- the messages are printed even if the condition isn't considered fatal
More information about the Swan-commit
mailing list