Clone packet data before modifying it

This commit is contained in:
Laurent Deru 2015-06-12 12:34:55 +02:00
parent e762d7eb50
commit 7a56d91c50

View file

@ -27,7 +27,7 @@ public abstract class PacketAnalyzer {
public Packet(byte[] data, int level) {
this.level = level;
this.data = data;
this.data = data.clone();
this.size = data.length;
}