[Swan-commit] Changes to ref refs/heads/main
Andrew Cagney
cagney at vault.libreswan.fi
Fri Oct 22 21:16:15 UTC 2021
New commits:
commit b1cf50c597dd7c026a73151db90c5f55ddb90d0d
Author: Andrew Cagney <cagney at gnu.org>
Date: Fri Oct 22 14:25:14 2021 -0400
lists: replace entry=list_entry(info,data) with init_list_entry(info,data,entry)
And strictly enforce that the entry is uninitialized.
Help prevent this ticking timebomb:
t = connection() // t->list_entry = ...
insert(t->list_entry)
i = instantiate(t) // clone(t); i->list_entry = ...
insert(i->list_entry) // double insert!
(While the hash table code was OK, this forces the clone
function to explicitly zero the cloned lists)
Need to get rid of the clone() function.
More information about the Swan-commit
mailing list