From 0a49f58e509beef370710e4ed56915ebb7f82bc8 Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Thu, 26 Jul 2012 11:03:57 -0300 Subject: [PATCH] Fix crash when InputMessage is too large --- modules/game_shaders/shaders.otmod | 1 + modules/game_tibiafiles/tibiafiles.otmod | 1 - src/framework/net/inputmessage.h | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/game_shaders/shaders.otmod b/modules/game_shaders/shaders.otmod index 61f606ec..799c6ff0 100644 --- a/modules/game_shaders/shaders.otmod +++ b/modules/game_shaders/shaders.otmod @@ -4,5 +4,6 @@ Module author: edubart website: www.otclient.info scripts: [ shaders.lua ] + sandboxed: true @onLoad: init() @onUnload: terminate() diff --git a/modules/game_tibiafiles/tibiafiles.otmod b/modules/game_tibiafiles/tibiafiles.otmod index a91ffd70..e15d9480 100644 --- a/modules/game_tibiafiles/tibiafiles.otmod +++ b/modules/game_tibiafiles/tibiafiles.otmod @@ -5,4 +5,3 @@ Module sandboxed: true scripts: [tibiafiles.lua] @onLoad: init() - @onUnload: terminate() diff --git a/src/framework/net/inputmessage.h b/src/framework/net/inputmessage.h index 12b5a019..4ef7ea36 100644 --- a/src/framework/net/inputmessage.h +++ b/src/framework/net/inputmessage.h @@ -31,7 +31,7 @@ class InputMessage : public LuaObject { public: enum { - BUFFER_MAXSIZE = 16384, + BUFFER_MAXSIZE = 65536, MAX_HEADER_SIZE = 8 };