Fix crash when InputMessage is too large
This commit is contained in:
parent
619305cc6d
commit
0a49f58e50
|
@ -4,5 +4,6 @@ Module
|
||||||
author: edubart
|
author: edubart
|
||||||
website: www.otclient.info
|
website: www.otclient.info
|
||||||
scripts: [ shaders.lua ]
|
scripts: [ shaders.lua ]
|
||||||
|
sandboxed: true
|
||||||
@onLoad: init()
|
@onLoad: init()
|
||||||
@onUnload: terminate()
|
@onUnload: terminate()
|
||||||
|
|
|
@ -5,4 +5,3 @@ Module
|
||||||
sandboxed: true
|
sandboxed: true
|
||||||
scripts: [tibiafiles.lua]
|
scripts: [tibiafiles.lua]
|
||||||
@onLoad: init()
|
@onLoad: init()
|
||||||
@onUnload: terminate()
|
|
||||||
|
|
|
@ -31,7 +31,7 @@ class InputMessage : public LuaObject
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
enum {
|
enum {
|
||||||
BUFFER_MAXSIZE = 16384,
|
BUFFER_MAXSIZE = 65536,
|
||||||
MAX_HEADER_SIZE = 8
|
MAX_HEADER_SIZE = 8
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue