]> git.ozlabs.org Git - ccan/commit
idtree: fix overflow for v. large ids on allocation and removal
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 6 Dec 2010 03:12:13 +0000 (13:42 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 6 Dec 2010 03:12:13 +0000 (13:42 +1030)
commitc5074939f21be43eb408dbab5f6708dd74dba531
treedf99aa141f3068409be84d70984bd54aa270c91e
parent9ad912e2583efd7d9927b0155688f9bc5291efdb
idtree: fix overflow for v. large ids on allocation and removal

Chris Cowan tracked down a SEGV in sub_alloc: idp->level can actually
be equal to 7 (MAX_LEVEL) there, as it can be in sub_remove.
ccan/idtree/idtree.c