]> git.ozlabs.org Git - ccan-lca-2011.git/commit
talloc: fixed a use after free error
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 10 Jan 2011 05:32:03 +0000 (16:02 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 10 Jan 2011 05:32:03 +0000 (16:02 +1030)
commit1e962ba9b5808dafc0be9cc562b25e3ae068ca5d
treedffc8b4cd452ea218c135c32d5e6452be20612cf
parent87aba1fa2abc28ff06f82e30cde3fa3d991e8e18
talloc: fixed a use after free error

(Import from SAMBA commit 6f51a1f45bf4de062cce7a562477e8140630a53d):

this is the minimal fix for the problem Rusty found. I previously
thought that the best fix would be to change tc->parent to be valid
for all pointers, but that is expensive for realloc with large numbers
of child pointers, which is much more commmon than I expected it to
be.
ccan/talloc/talloc.c