Skip to content

Commit a4e0a3a

Browse files
committed
Fixed crashes and continual memory consumption due to lua stack overflow
1 parent b089669 commit a4e0a3a

File tree

2 files changed

+100
-11
lines changed

2 files changed

+100
-11
lines changed

mak.vs2008/lua5.1_dll.vcproj

Lines changed: 98 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="Windows-1252"?>
22
<VisualStudioProject
33
ProjectType="Visual C++"
4-
Version="9,00"
4+
Version="9.00"
55
Name="lua5.1_dll"
66
ProjectGUID="{8EEECEE6-A6EC-BC48-8E76-22B87825444B}"
77
RootNamespace="lua5.1_dll"
@@ -43,15 +43,14 @@
4343
Name="VCCLCompilerTool"
4444
Optimization="0"
4545
AdditionalIncludeDirectories="../../../Shared/publicsdk/lua/include"
46-
PreprocessorDefinitions="FORCE_BUILD=3"
46+
PreprocessorDefinitions="LUA_USE_APICHECK"
4747
MinimalRebuild="true"
4848
BasicRuntimeChecks="3"
4949
RuntimeLibrary="3"
5050
EnableFunctionLevelLinking="true"
5151
RuntimeTypeInfo="true"
5252
UsePrecompiledHeader="0"
5353
WarningLevel="3"
54-
Detect64BitPortabilityProblems="true"
5554
DebugInformationFormat="4"
5655
CompileAs="1"
5756
DisableSpecificWarnings="4996"
@@ -130,14 +129,12 @@
130129
Name="VCCLCompilerTool"
131130
Optimization="2"
132131
AdditionalIncludeDirectories="../../../Shared/publicsdk/lua/include"
133-
PreprocessorDefinitions="FORCE_BUILD=3"
134132
StringPooling="true"
135133
RuntimeLibrary="2"
136134
EnableFunctionLevelLinking="true"
137135
RuntimeTypeInfo="true"
138136
UsePrecompiledHeader="0"
139137
WarningLevel="3"
140-
Detect64BitPortabilityProblems="true"
141138
DebugInformationFormat="0"
142139
CompileAs="1"
143140
DisableSpecificWarnings="4996"
@@ -217,14 +214,12 @@
217214
Name="VCCLCompilerTool"
218215
Optimization="2"
219216
AdditionalIncludeDirectories="../../../Shared/publicsdk/lua/include"
220-
PreprocessorDefinitions="FORCE_BUILD=3"
221217
StringPooling="true"
222218
RuntimeLibrary="2"
223219
EnableFunctionLevelLinking="true"
224220
RuntimeTypeInfo="true"
225221
UsePrecompiledHeader="0"
226222
WarningLevel="3"
227-
Detect64BitPortabilityProblems="true"
228223
DebugInformationFormat="0"
229224
CompileAs="1"
230225
DisableSpecificWarnings="4996"
@@ -409,6 +404,102 @@
409404
>
410405
</File>
411406
</Filter>
407+
<Filter
408+
Name="inc"
409+
>
410+
<File
411+
RelativePath="..\src\lapi.h"
412+
>
413+
</File>
414+
<File
415+
RelativePath="..\src\lauxlib.h"
416+
>
417+
</File>
418+
<File
419+
RelativePath="..\src\lcode.h"
420+
>
421+
</File>
422+
<File
423+
RelativePath="..\src\ldebug.h"
424+
>
425+
</File>
426+
<File
427+
RelativePath="..\src\ldo.h"
428+
>
429+
</File>
430+
<File
431+
RelativePath="..\src\lfunc.h"
432+
>
433+
</File>
434+
<File
435+
RelativePath="..\src\lgc.h"
436+
>
437+
</File>
438+
<File
439+
RelativePath="..\src\llex.h"
440+
>
441+
</File>
442+
<File
443+
RelativePath="..\src\llimits.h"
444+
>
445+
</File>
446+
<File
447+
RelativePath="..\src\lmem.h"
448+
>
449+
</File>
450+
<File
451+
RelativePath="..\src\lobject.h"
452+
>
453+
</File>
454+
<File
455+
RelativePath="..\src\lopcodes.h"
456+
>
457+
</File>
458+
<File
459+
RelativePath="..\src\lparser.h"
460+
>
461+
</File>
462+
<File
463+
RelativePath="..\src\lstate.h"
464+
>
465+
</File>
466+
<File
467+
RelativePath="..\src\lstring.h"
468+
>
469+
</File>
470+
<File
471+
RelativePath="..\src\ltable.h"
472+
>
473+
</File>
474+
<File
475+
RelativePath="..\src\ltm.h"
476+
>
477+
</File>
478+
<File
479+
RelativePath="..\src\lua.h"
480+
>
481+
</File>
482+
<File
483+
RelativePath="..\src\luaconf.h"
484+
>
485+
</File>
486+
<File
487+
RelativePath="..\src\lualib.h"
488+
>
489+
</File>
490+
<File
491+
RelativePath="..\src\lundump.h"
492+
>
493+
</File>
494+
<File
495+
RelativePath="..\src\lvm.h"
496+
>
497+
</File>
498+
<File
499+
RelativePath="..\src\lzio.h"
500+
>
501+
</File>
502+
</Filter>
412503
</Files>
413504
<Globals>
414505
</Globals>

mak.vs2008/lua5.1_lib.vcproj

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="Windows-1252"?>
22
<VisualStudioProject
33
ProjectType="Visual C++"
4-
Version="9,00"
4+
Version="9.00"
55
Name="lua5.1_lib"
66
ProjectGUID="{E2629417-52DF-854E-B510-C15A87AB4BE3}"
77
RootNamespace="lua5.1_lib"
@@ -43,14 +43,14 @@
4343
Name="VCCLCompilerTool"
4444
Optimization="0"
4545
AdditionalIncludeDirectories="../include"
46+
PreprocessorDefinitions="LUA_USE_APICHECK;WIN32_LEAN_AND_MEAN"
4647
MinimalRebuild="true"
4748
BasicRuntimeChecks="3"
4849
RuntimeLibrary="3"
4950
EnableFunctionLevelLinking="true"
5051
RuntimeTypeInfo="true"
5152
UsePrecompiledHeader="0"
5253
WarningLevel="3"
53-
Detect64BitPortabilityProblems="true"
5454
DebugInformationFormat="4"
5555
CompileAs="1"
5656
DisableSpecificWarnings="4996"
@@ -123,7 +123,6 @@
123123
RuntimeTypeInfo="true"
124124
UsePrecompiledHeader="0"
125125
WarningLevel="3"
126-
Detect64BitPortabilityProblems="true"
127126
DebugInformationFormat="0"
128127
CompileAs="1"
129128
DisableSpecificWarnings="4996"
@@ -196,7 +195,6 @@
196195
RuntimeTypeInfo="true"
197196
UsePrecompiledHeader="0"
198197
WarningLevel="3"
199-
Detect64BitPortabilityProblems="true"
200198
DebugInformationFormat="0"
201199
CompileAs="1"
202200
DisableSpecificWarnings="4996"

0 commit comments

Comments
 (0)