File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change
1
+ - Fix incoming MQTT v5 messages with overall property length > 127 bytes being
2
+ incorrectly decoded. Closes #541.
3
+
1
4
v1.5.1 - 2020x-09-22
2
5
===================
3
6
Original file line number Diff line number Diff line change @@ -391,10 +391,10 @@ def unpack(self, buffer):
391
391
buffer = buffer [VBIlen :] # strip the bytes used by the VBI
392
392
propslenleft = propslen
393
393
while propslenleft > 0 : # properties length is 0 if there are none
394
- identifier , VBIlen = VariableByteIntegers .decode (
394
+ identifier , VBIlen2 = VariableByteIntegers .decode (
395
395
buffer ) # property identifier
396
- buffer = buffer [VBIlen :] # strip the bytes used by the VBI
397
- propslenleft -= VBIlen
396
+ buffer = buffer [VBIlen2 :] # strip the bytes used by the VBI
397
+ propslenleft -= VBIlen2
398
398
attr_type = self .properties [identifier ][0 ]
399
399
value , valuelen = self .readProperty (
400
400
buffer , attr_type , propslenleft )
You can’t perform that action at this time.
0 commit comments