Skip to content

Commit

Permalink
Fix missing depth increment that prevents StackOverflowException
Browse files Browse the repository at this point in the history
  • Loading branch information
lhotari committed Feb 3, 2024
1 parent 9c1b68f commit a751294
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ public void visitBuffer(InternalContext<T> internalContext, ByteBuf visitBuffer,
internalContext.userCallback.visitBuffer(internalContext.userContext, visitBuffer,
visitIndex, visitLength);
} else {
internalContext.depth++;
// use the doRecursivelyVisitBuffers method to visit the wrapped buffer, possibly recursively
doRecursivelyVisitBuffers(visitBuffer, visitIndex, visitLength, this, internalContext);
}
Expand Down

0 comments on commit a751294

Please sign in to comment.