]> arthur.barton.de Git - bup.git/commit
Fix off-by-one in MAX_PER_TREE guard in _squish().
authorRob Browning <rlb@defaultvalue.org>
Sat, 23 Nov 2013 19:15:45 +0000 (13:15 -0600)
committerRob Browning <rlb@defaultvalue.org>
Sat, 23 Nov 2013 19:15:48 +0000 (13:15 -0600)
commite166d6da6dbe23706b24c3a9485ea8ae7b6c7503
treed657257c1ab5798acf6381b27ac8c172cd645b4a
parentf3c4f057d98f84f411c436c28c3e50230aed2f45
Fix off-by-one in MAX_PER_TREE guard in _squish().

Previously bup would allow MAX_PER_TREE + 1 items in a tree.  Change
the guard to ensure that trees really are limited to MAX_PER_TREE.

Thanks to Patrick Rouleau <prouleau72@gmail.com> for reporting the
problem.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/hashsplit.py