[SCM] Samba Shared Repository - branch master updated

Rusty Russell rusty at samba.org
Sun Dec 5 21:03:02 MST 2010

The branch, master has been updated
       via  521e96c idtree: fix overflow for v. large ids on allocation and removal
      from  af5649d s4-repl_meta_data: Print function name when we can't find attribute in Schema cache


- Log -----------------------------------------------------------------
commit 521e96ca751df072e5c71d3844ed5708b79ac69d
Author: Rusty Russell <rusty at rustcorp.com.au>
Date:   Mon Dec 6 13:35:50 2010 +1030

    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.
    (We unfairly blamed a shift of a signed var for this crash in commit
    Signed-off-by: Rusty Russell <rusty at rustcorp.com.au>
    Autobuild-User: Rusty Russell <rusty at rustcorp.com.au>
    Autobuild-Date: Mon Dec  6 05:02:22 CET 2010 on sn-devel-104


Summary of changes:
 lib/util/idtree.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Changeset truncated at 500 lines:

diff --git a/lib/util/idtree.c b/lib/util/idtree.c
index 6611992..3648761 100644
--- a/lib/util/idtree.c
+++ b/lib/util/idtree.c
@@ -104,7 +104,7 @@ static int sub_alloc(struct idr_context *idp, void *ptr, int *starting_id)
 	int n, m, sh;
 	struct idr_layer *p, *pn;
-	struct idr_layer *pa[MAX_LEVEL];
+	struct idr_layer *pa[MAX_LEVEL+1];
 	unsigned int l, id, oid;
 	uint32_t bm;

Samba Shared Repository

More information about the samba-cvs mailing list