]> arthur.barton.de Git - bup.git/commit
index: raise children_n limit to struct 'I' max
authorRob Browning <rlb@defaultvalue.org>
Sat, 5 Mar 2016 17:21:50 +0000 (11:21 -0600)
committerRob Browning <rlb@defaultvalue.org>
Sat, 5 Mar 2016 17:26:28 +0000 (11:26 -0600)
commit9268378e79d20d66647240b926cfcc1d8e95901f
treedffa7905612383529c3de06ace4af97e072ed29d
parentc6ca14bac1e848d9414841d7181b7c7cdc85caa2
index: raise children_n limit to struct 'I' max

This assertion appears to be a sanity check, and one that's perhaps too
low (think giant Maildirs), so raise it to the real limit, which should
be UINT_MAX, given that the index header containing it is
encoded/decoded via 'I' (platform native unsigned int):

  https://docs.python.org/2/library/struct.html

Since Python doesn't appear to provide access to UINT_MAX, add it (and
INT_MAX) to _helpers.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/_helpers.c
lib/bup/index.py