From 82abdb50b16caaa3b4d40487c7ab216aad6c24ed Mon Sep 17 00:00:00 2001 From: n1474335 Date: Tue, 20 Aug 2019 15:20:43 +0100 Subject: [PATCH] Fixed bug in Protobuf library causing issues with long keys --- src/core/lib/Protobuf.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/lib/Protobuf.mjs b/src/core/lib/Protobuf.mjs index 03d5943e..0cdf41f2 100644 --- a/src/core/lib/Protobuf.mjs +++ b/src/core/lib/Protobuf.mjs @@ -205,7 +205,7 @@ class Protobuf { (this.data[this.offset] & this.VALUE) << shift : (this.data[this.offset] & this.VALUE) * Math.pow(2, shift); shift += 7; - } while ((this.data[this.offset++] & this.MSD) === this.MSB); + } while ((this.data[this.offset++] & this.MSB) === this.MSB); return fieldNumber; }