diff options
| author | Loki Rautio <lokirautio@gmail.com> | 2026-03-09 04:46:56 -0500 |
|---|---|---|
| committer | Loki Rautio <lokirautio@gmail.com> | 2026-03-09 04:46:56 -0500 |
| commit | a358a3caaee2a4781f910cfb440bd822ae73a7e5 (patch) | |
| tree | 638ff44db51c8e27826e56bacb5af764f98ef2d0 /Minecraft.World/CustomPayloadPacket.cpp | |
| parent | d557ca2dfba5ffcca99ceb41b07d149f871964b5 (diff) | |
Revert accidentally pushed "LCEMP RCE fixes"
This reverts commit d557ca2dfba5ffcca99ceb41b07d149f871964b5.
Diffstat (limited to 'Minecraft.World/CustomPayloadPacket.cpp')
| -rw-r--r-- | Minecraft.World/CustomPayloadPacket.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Minecraft.World/CustomPayloadPacket.cpp b/Minecraft.World/CustomPayloadPacket.cpp index e86f01de..46fde5aa 100644 --- a/Minecraft.World/CustomPayloadPacket.cpp +++ b/Minecraft.World/CustomPayloadPacket.cpp @@ -43,7 +43,7 @@ void CustomPayloadPacket::read(DataInputStream *dis) identifier = readUtf(dis, 20); length = dis->readShort(); - if (length > 0 && length <= Short::MAX_VALUE) + if (length > 0 && length < Short::MAX_VALUE) { if(data.data != nullptr) { |
