Fix total number of bytes in sanity check
This commit is contained in:
parent
a7e448f6b4
commit
a7c1daf806
3 changed files with 4 additions and 4 deletions
|
@ -1,3 +1,3 @@
|
|||
class Constants {
|
||||
static const VERSION = "1.2.082924+1124";
|
||||
static const VERSION = "1.2.082924+1447";
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ class PacketServer {
|
|||
var oldPos = layer.currentPosition;
|
||||
layer.resetPosition();
|
||||
int pktTotalExpected = layer.readLong();
|
||||
if (pktTotalExpected <= layer.length) {
|
||||
if (pktTotalExpected + 8 <= layer.length) {
|
||||
// Allow Processing
|
||||
} else {
|
||||
layer.restorePosition(oldPos);
|
||||
|
@ -184,7 +184,7 @@ class PacketClient {
|
|||
var oldPos = reply.currentPosition;
|
||||
reply.resetPosition();
|
||||
int lenOfReply = reply.readLong();
|
||||
if (lenOfReply <= reply.length) {
|
||||
if (lenOfReply + 8 <= reply.length) {
|
||||
// We can now process the data
|
||||
} else {
|
||||
reply.restorePosition(oldPos);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
name: libac_dart
|
||||
description: "Aria's Creations code library"
|
||||
version: 1.2.082924+1124
|
||||
version: 1.2.082924+1447
|
||||
homepage: "https://zontreck.com"
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue