Clone packet data before modifying it
This commit is contained in:
parent
e762d7eb50
commit
7a56d91c50
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue