From 16aa015682bcc7fed24803b6b76bbaa4a5a09af5 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Wed, 6 May 2015 15:24:21 -0700 Subject: [PATCH] Fix off-by-one error in SHAMapNodeID: Limit is 64 inner nodes at depth 0-63, and one leaf at depth 64 --- src/ripple/shamap/SHAMapNodeID.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ripple/shamap/SHAMapNodeID.h b/src/ripple/shamap/SHAMapNodeID.h index a35af01a1c..313cb65f6a 100644 --- a/src/ripple/shamap/SHAMapNodeID.h +++ b/src/ripple/shamap/SHAMapNodeID.h @@ -102,7 +102,7 @@ inline bool SHAMapNodeID::isValid () const { - return (mDepth >= 0) && (mDepth < 64); + return (mDepth >= 0) && (mDepth <= 64); } inline