summaryrefslogtreecommitdiff
path: root/tasd
diff options
context:
space:
mode:
authorTheMas3212 <mas3212@gmail.com>2026-07-11 10:57:43 +1000
committerTheMas3212 <mas3212@gmail.com>2026-07-11 10:57:43 +1000
commit244ef4f49f813da3ed4a73742ed39386dc64e3ce (patch)
treec5d3b76f966a19a9e84cce4534856ddf5cf0bcf0 /tasd
parent747e2c45ef64bef5df8960a72d4bc879585dcf14 (diff)
downloadtasd-py-244ef4f49f813da3ed4a73742ed39386dc64e3ce.tar.gz
tasd-py-244ef4f49f813da3ed4a73742ed39386dc64e3ce.zip
Fix parsing bug in String_PLEN type packet attributesmaster
Diffstat (limited to 'tasd')
-rw-r--r--tasd/packet.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tasd/packet.py b/tasd/packet.py
index 5d9ed68..3f1c2f0 100644
--- a/tasd/packet.py
+++ b/tasd/packet.py
@@ -47,12 +47,12 @@ class _TASDPacket():
setattr(self, variable.name, readString(buffer, index, len(buffer) - index))
index = len(buffer)
case _VariableType.STRING_PLEN:
- plen = readInt8(buffer, index)
+ plen = readUint8(buffer, index)
index += 1
setattr(self, variable.name, readString(buffer, index, plen))
index += plen
case _VariableType.STRING_PEXP:
- pexp = readInt8(buffer, index)
+ pexp = readUint8(buffer, index)
index += 1
plen = readIntN(buffer, index, pexp)
index += pexp
@@ -62,12 +62,12 @@ class _TASDPacket():
setattr(self, variable.name, readBytes(buffer, index, len(buffer)))
index = len(buffer)
case _VariableType.BYTES_PLEN:
- plen = readInt8(buffer, index)
+ plen = readUint8(buffer, index)
index += 1
setattr(self, variable.name, readBytes(buffer, index, plen))
index += plen
case _VariableType.BYTES_PEXP:
- pexp = readInt8(buffer, index)
+ pexp = readUint8(buffer, index)
index += 1
plen = readIntN(buffer, index, pexp)
index += pexp