Skip to content

Commit 6334d28

Browse files
committed
chore: update lua to 5.4
Signed-off-by: Felipe Zipitria <felipe.zipitria@owasp.org>
1 parent 2268276 commit 6334d28

File tree

6 files changed

+27
-27
lines changed

6 files changed

+27
-27
lines changed

README_WINDOWS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ Note: PCRE2 with JIT support provides better performance and fixes stack overflo
9494
CD C:\work\lua-5.4.8\src
9595
CL /Ox /arch:SSE2 /GF /GL /Gy /FD /EHsc /MD /Zi /TC /wd4005 /D "_MBCS" /D "LUA_CORE" /D "LUA_BUILD_AS_DLL" /D "_CRT_SECURE_NO_WARNINGS" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_WIN32" /D "_WINDLL" /c *.c
9696
DEL lua.obj luac.obj
97-
LINK /DLL /LTCG /DEBUG /OUT:lua5.1.dll *.obj
98-
IF EXIST lua5.1.dll.manifest MT -manifest lua5.1.dll.manifest -outputresource:lua5.1.dll;2
97+
LINK /DLL /LTCG /DEBUG /OUT:lua54.dll *.obj
98+
IF EXIST lua54.dll.manifest MT -manifest lua54.dll.manifest -outputresource:lua54.dll;2
9999

100100
### cURL-8.18.0
101101

@@ -113,7 +113,7 @@ Note: PCRE2 with JIT support provides better performance and fixes stack overflo
113113
Copy these files to ``C:\Apache2466\bin``:
114114

115115
C:\work\pcre2-10.47\pcre2-8.dll C:\Apache2466\bin\
116-
C:\work\lua-5.4.8\src\lua5.1.dll C:\Apache2466\bin\
116+
C:\work\lua-5.4.8\src\lua54.dll C:\Apache2466\bin\
117117
C:\work\libxml2-2.15.1\win32\bin.msvc\libxml2.dll C:\Apache2466\bin\
118118
C:\work\curl-8.18.0\builds\libcurl-vc-x64-release-dll-zlib-dll-ipv6-sspi-schannel-obj-lib\libcurl.dll C:\Apache2466\bin\
119119
C:\work\mod_security\apache2\mlogc-src\mlogc.exe C:\Apache2466\bin\

apache2/Makefile.win

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ LIBS = $(APACHE)\lib\libhttpd.lib \
1111
$(APACHE)\lib\libapr-1.lib \
1212
$(APACHE)\lib\libaprutil-1.lib \
1313
$(PCRE)\pcre.lib \
14-
$(CURL)\libcurl.lib \
14+
$(CURL)\libcurl.lib \
1515
$(LIBXML2)\win32\bin.msvc\libxml2.lib \
1616
Ws2_32.lib \
1717
"iphlpapi.lib"
1818

1919
###########################################################################
2020
###########################################################################
2121

22-
23-
!IF "$(IIS_BUILD)" == "yes"
24-
DEFS=$(DEFS) -DVERSION_IIS
25-
!ENDIF
26-
22+
23+
!IF "$(IIS_BUILD)" == "yes"
24+
DEFS=$(DEFS) -DVERSION_IIS
25+
!ENDIF
26+
2727
CC = CL
2828

2929
MT = mt
@@ -37,13 +37,13 @@ INCLUDES = -I. -I.. \
3737
-I$(PCRE)\include -I$(PCRE) \
3838
-I$(LIBXML2)\include \
3939
-I$(APACHE)\include
40-
41-
# Enables support for SecRemoteRules and external resources.
42-
DEFS=$(DEFS) -DWITH_CURL -DWITH_REMOTE_RULES
40+
41+
# Enables support for SecRemoteRules and external resources.
42+
DEFS=$(DEFS) -DWITH_CURL -DWITH_REMOTE_RULES
4343

4444
# Lua is optional
4545
!IF "$(LUA)" != ""
46-
LIBS = $(LIBS) $(LUA)\lua5.1.lib
46+
LIBS = $(LIBS) $(LUA)\lua54.lib
4747
DEFS=$(DEFS) -DWITH_LUA
4848
INCLUDES = $(INCLUDES) -I$(LUA)\include -I$(LUA) \
4949
!ENDIF
@@ -65,8 +65,8 @@ OBJS = mod_security2.obj apache2_config.obj apache2_io.obj apache2_util.obj \
6565
msc_parsers.obj msc_util.obj msc_pcre.obj persist_dbm.obj \
6666
msc_reqbody.obj msc_geo.obj msc_gsb.obj msc_crypt.obj msc_tree.obj msc_unicode.obj acmp.obj msc_lua.obj \
6767
msc_release.obj \
68-
msc_status_engine.obj \
69-
msc_remote_rules.obj \
68+
msc_status_engine.obj \
69+
msc_remote_rules.obj \
7070
msc_json.obj \
7171
libinjection/libinjection_html5.obj \
7272
libinjection/libinjection_sqli.obj \

iis/Makefile.win

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ DEFS=$(DEFS) -DWITH_CURL -DWITH_REMOTE_RULES -DMSC_LARGE_STREAM_INPUT
4444
# -I$(SSDEEP) \
4545
# Lua is optional
4646
!IF "$(LUA)" != ""
47-
LIBS = $(LIBS) $(LUA)\lua5.1.lib
47+
LIBS = $(LIBS) $(LUA)\lua54.lib
4848
DEFS=$(DEFS) -DWITH_LUA
4949
INCLUDES = $(INCLUDES) -I$(LUA)\include -I$(LUA) \
5050
!ENDIF

iis/build_release.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ copy "%OUTPUT_DIR%\libapriconv-1.dll" "%AMD64%"
2929
copy "%OUTPUT_DIR%\libaprutil-1.dll" "%AMD64%"
3030
copy "%OUTPUT_DIR%\libcurl.dll" "%AMD64%"
3131
copy "%OUTPUT_DIR%\libxml2.dll" "%AMD64%"
32-
copy "%OUTPUT_DIR%\lua5.1.dll" "%AMD64%"
32+
copy "%OUTPUT_DIR%\lua54.dll" "%AMD64%"
3333
copy "%OUTPUT_DIR%\mlogc.exe" "%AMD64%"
3434
copy "%OUTPUT_DIR%\ModSecurityIIS.dll" "%AMD64%"
3535
copy "%OUTPUT_DIR%\pcre2-8.dll" "%AMD64%"
@@ -48,7 +48,7 @@ copy "%OUTPUT_DIR%\libapriconv-1.dll" "%X86%"
4848
copy "%OUTPUT_DIR%\libaprutil-1.dll" "%X86%"
4949
copy "%OUTPUT_DIR%\libcurl.dll" "%X86%"
5050
copy "%OUTPUT_DIR%\libxml2.dll" "%X86%"
51-
copy "%OUTPUT_DIR%\lua5.1.dll" "%X86%"
51+
copy "%OUTPUT_DIR%\lua54.dll" "%X86%"
5252
copy "%OUTPUT_DIR%\mlogc.exe" "%X86%"
5353
copy "%OUTPUT_DIR%\ModSecurityIIS.dll" "%X86%"
5454
copy "%OUTPUT_DIR%\pcre2-8.dll" "%X86%"

iis/dependencies/build_lua.bat

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@ cd "%WORK_DIR%"
66

77
set LUA_DIR=%LUA:~0,-7%
88

9-
move "%LUA_DIR%" "lua"
9+
move "%LUA_DIR%" "lua"
1010

11-
cd "lua\src"
11+
cd "lua\src"
1212

1313
CL /Ox /arch:SSE2 /GF /GL /Gy /FD /EHsc /MD /Zi /TC /wd4005 /D "_MBCS" /D "LUA_CORE" /D "LUA_BUILD_AS_DLL" /D "_CRT_SECURE_NO_WARNINGS" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_WIN32" /D "_WINDLL" /c *.c
1414
@if NOT (%ERRORLEVEL%) == (0) goto build_failed
1515
DEL lua.obj luac.obj
16-
LINK /DLL /LTCG /DEBUG /OUT:lua5.1.dll *.obj
16+
LINK /DLL /LTCG /DEBUG /OUT:lua54.dll *.obj
1717
@if NOT (%ERRORLEVEL%) == (0) goto build_failed
18-
IF EXIST lua5.1.dll.manifest MT -manifest lua5.1.dll.manifest -outputresource:lua5.1.dll;2
18+
IF EXIST lua54.dll.manifest MT -manifest lua54.dll.manifest -outputresource:lua54.dll;2
1919
@if NOT (%ERRORLEVEL%) == (0) goto build_failed
2020

2121
cd "%WORK_DIR%"
2222

23-
copy /y "%WORK_DIR%\lua\src\lua5.1.dll" "%OUTPUT_DIR%"
24-
copy /y "%WORK_DIR%\lua\src\lua5.1.pdb" "%OUTPUT_DIR%"
25-
copy /y "%WORK_DIR%\lua\src\lua5.1.lib" "%OUTPUT_DIR%"
23+
copy /y "%WORK_DIR%\lua\src\lua54.dll" "%OUTPUT_DIR%"
24+
copy /y "%WORK_DIR%\lua\src\lua54.pdb" "%OUTPUT_DIR%"
25+
copy /y "%WORK_DIR%\lua\src\lua54.lib" "%OUTPUT_DIR%"
2626

2727
@exit /B 0
2828

iis/installer.wxs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
<FileSearch Id="CheckFile6" Name="libxml2.dll" />
7070
</DirectorySearch>
7171
<DirectorySearch Id="CheckFileDir7" Path="C:\Windows\System32\inetsrv" Depth="0">
72-
<FileSearch Id="CheckFile7" Name="lua5.1.dll" />
72+
<FileSearch Id="CheckFile7" Name="lua54.dll" />
7373
</DirectorySearch>
7474
<DirectorySearch Id="CheckFileDir8" Path="C:\Windows\System32\inetsrv" Depth="0">
7575
<FileSearch Id="CheckFile8" Name="pcre2-8.dll" />
@@ -96,7 +96,7 @@
9696
<FileSearch Id="CheckFile15" Name="libxml2.dll" />
9797
</DirectorySearch>
9898
<DirectorySearch Id="CheckFileDir16" Path="C:\Windows\System32\inetsrv" Depth="0">
99-
<FileSearch Id="CheckFile16" Name="lua5.1.dll" />
99+
<FileSearch Id="CheckFile16" Name="lua54.dll" />
100100
</DirectorySearch>
101101
<DirectorySearch Id="CheckFileDir17" Path="C:\Windows\System32\inetsrv" Depth="0">
102102
<FileSearch Id="CheckFile17" Name="pcre2-8.dll" />

0 commit comments

Comments
 (0)