From a373899ae0f35224067efee0f951c88251d74190 Mon Sep 17 00:00:00 2001 From: deathride58 Date: Sun, 28 Jul 2019 13:08:02 -0400 Subject: [PATCH] [s] fixes major server crash exploit vector involving notes --- code/datums/mind.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/datums/mind.dm b/code/datums/mind.dm index 7d150d890d..51fc6c54f6 100644 --- a/code/datums/mind.dm +++ b/code/datums/mind.dm @@ -130,7 +130,8 @@ L.update_arousal_hud() //Removes the old icon /datum/mind/proc/store_memory(new_text) - memory += "[new_text]
" + if((length(memory) + length(new_text)) <= MAX_MESSAGE_LEN) + memory += "[new_text]
" /datum/mind/proc/wipe_memory() memory = null