From 4f19c37fdc3ace47784363066d103f5f99593fe7 Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Tue, 11 Jul 2017 10:29:29 +0200 Subject: [PATCH] Parser fix for multi-level arrays --- src/network/bmproto.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/network/bmproto.py b/src/network/bmproto.py index 9aac3dda..30068d6d 100644 --- a/src/network/bmproto.py +++ b/src/network/bmproto.py @@ -219,6 +219,7 @@ class BMProto(AdvancedDispatcher, ObjectTracker): if parserStack[-1][3][j] not in "lL0123456789": break parserStack.append([size, size, isArray, parserStack[-1][3][parserStack[-1][4]:j+1], 0, []]) + parserStack[-2][4] += len(parserStack[-1][3]) - 1 size = None continue elif i == "s":