summaryrefslogtreecommitdiff
path: root/lib/util/idtree.c
AgeCommit message (Collapse)AuthorFilesLines
2010-06-10Since idtree assigns sequentially, it rarely reaches high numbers.Rusty Russell1-3/+5
But such numbers can be forced with idr_get_new_above(), and that reveals two bugs: 1) Crash in sub_remove() caused by pa array being too short. 2) Shift by more than 32 in _idr_find(), which is undefined, causing the "outside the current tree" optimization to misfire and return NULL.
2009-04-01lib/util: fallback to any id in idr_get_new_random()Stefan Metzmacher1-2/+6
metze
2009-02-02lib/util: s/new/pn in idtree.cStefan Metzmacher1-16/+16
metze
2008-10-11Move lib/util from source4 to top-level libutil.Jelmer Vernooij1-0/+403
Conflicts: source4/Makefile