mirror of
https://github.com/gchq/CyberChef.git
synced 2024-11-02 14:11:02 +01:00
Fixed bug in Protobuf library causing issues with long keys
This commit is contained in:
parent
ae1cd8ba3e
commit
82abdb50b1
@ -205,7 +205,7 @@ class Protobuf {
|
|||||||
(this.data[this.offset] & this.VALUE) << shift :
|
(this.data[this.offset] & this.VALUE) << shift :
|
||||||
(this.data[this.offset] & this.VALUE) * Math.pow(2, shift);
|
(this.data[this.offset] & this.VALUE) * Math.pow(2, shift);
|
||||||
shift += 7;
|
shift += 7;
|
||||||
} while ((this.data[this.offset++] & this.MSD) === this.MSB);
|
} while ((this.data[this.offset++] & this.MSB) === this.MSB);
|
||||||
return fieldNumber;
|
return fieldNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user