From 0d8819399458758d3c71596eae5d592bf8b2a042 Mon Sep 17 00:00:00 2001 From: Mikkel Friis Date: Thu, 17 Sep 2020 08:11:06 +0200 Subject: [PATCH] message overflow fix #741 this fixes #741 --- .../items/interactions/wired/effects/WiredEffectBotTalk.java | 2 ++ .../interactions/wired/effects/WiredEffectBotTalkToHabbo.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/wired/effects/WiredEffectBotTalk.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/wired/effects/WiredEffectBotTalk.java index e73978a0..8297cde1 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/wired/effects/WiredEffectBotTalk.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/wired/effects/WiredEffectBotTalk.java @@ -57,6 +57,8 @@ public class WiredEffectBotTalk extends InteractionWiredEffect { if (data.length == 2) { this.botName = data[0]; + + if (data[1].length() > 64) return false; this.message = data[1]; } diff --git a/src/main/java/com/eu/habbo/habbohotel/items/interactions/wired/effects/WiredEffectBotTalkToHabbo.java b/src/main/java/com/eu/habbo/habbohotel/items/interactions/wired/effects/WiredEffectBotTalkToHabbo.java index aec24c88..97badb10 100644 --- a/src/main/java/com/eu/habbo/habbohotel/items/interactions/wired/effects/WiredEffectBotTalkToHabbo.java +++ b/src/main/java/com/eu/habbo/habbohotel/items/interactions/wired/effects/WiredEffectBotTalkToHabbo.java @@ -77,6 +77,8 @@ public class WiredEffectBotTalkToHabbo extends InteractionWiredEffect { if (data.length == 2) { this.botName = data[0]; + + if (data[1].length() > 64) return false; this.message = data[1]; }