git.samba.org
/
sahlberg
/
ctdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
idtree: fix overflow for v. large ids on allocation and removal
[sahlberg/ctdb.git]
/
lib
/
util
/
idtree.c
diff --git
a/lib/util/idtree.c
b/lib/util/idtree.c
index 05c22958bf739359cc0c6f69962b067198bc27ab..09dc237f83c2eaebdecbbdcbf5068e032282d10a 100644
(file)
--- 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, *new;
- struct idr_layer *pa[MAX_LEVEL];
+ struct idr_layer *pa[MAX_LEVEL
+1
];
unsigned int l, id, oid;
uint32_t bm;