Compare commits

..

17 Commits

Author SHA1 Message Date
a1017ea985 build-win32.sh: upgraded openssl to 1.1.1k. 2021-05-31 20:45:16 -07:00
7bb2644fe8 bumped version to 1.19.3.2. 2021-05-28 12:33:53 +08:00
e95a015346 bugfix: applied the patch for security advisory to NGINX cores >= 0.6.18 and <= 1.20.0 (CVE-2021-23017). (#739) 2021-05-28 12:30:15 +08:00
de3e659ef5 bumped version to 1.19.3.1. 2020-11-06 12:18:13 -08:00
1c4063664e upgraded lua-resty-mysql to 0.23. 2020-11-04 11:14:07 +08:00
72d8adc75c tests: fixed tests to reflect component version bumps. 2020-11-03 16:19:48 +08:00
d5f130fbff upgraded lua-resty-core to 0.1.21. 2020-11-03 16:18:44 +08:00
934a3102dc upgraded ngx_lua to 0.10.19. 2020-11-03 16:18:25 +08:00
b9bc185f79 upgraded lua-resty-websocket to 0.08. 2020-10-30 16:41:34 +08:00
f43cd23f83 upgraded resty-cli to 0.27. 2020-10-30 16:40:47 +08:00
0e1cad8190 upgraded lua-resty-core to 0.1.20. 2020-10-30 16:40:12 +08:00
ce740cba10 upgraded ngx_stream_lua to v0.0.9. 2020-10-30 16:39:22 +08:00
8fa9533c5e upgraded ngx_lua to 0.10.18. 2020-10-30 16:38:52 +08:00
29b901d4cd change: ./configure: we no longer need to pass in -msse4.2 with the latest LuaJIT. 2020-10-27 01:06:41 -07:00
fcee0d36da bumped version to 1.19.3.1 RC2. 2020-10-27 00:37:39 -07:00
bae27d3eff updated tests to reflect the new luajit. 2020-10-27 00:36:28 -07:00
931adca76a upgraded LuaJIT to 2.1-20201027. 2020-10-27 00:35:54 -07:00
6 changed files with 679 additions and 843 deletions

View File

@ -0,0 +1,23 @@
diff --git src/core/ngx_resolver.c src/core/ngx_resolver.c
--- src/core/ngx_resolver.c
+++ src/core/ngx_resolver.c
@@ -4008,15 +4008,15 @@ done:
n = *src++;
} else {
+ if (dst != name->data) {
+ *dst++ = '.';
+ }
+
ngx_strlow(dst, src, n);
dst += n;
src += n;
n = *src++;
-
- if (n != 0) {
- *dst++ = '.';
- }
}
if (n == 0) {

File diff suppressed because it is too large Load Diff

View File

@ -2,8 +2,8 @@
PCRE=pcre-8.44
ZLIB=zlib-1.2.11
OPENSSL=openssl-1.1.1g
JOBS=12
OPENSSL=openssl-1.1.1k
JOBS=8
# wget https://www.openssl.org/source/openssl-1.1.1g.tar.gz
# wget http://zlib.net/zlib-1.2.11.tar.gz

45
util/configure vendored
View File

@ -739,51 +739,6 @@ _END_
$luajit_xcflags .= " -DLUAJIT_DISABLE_GC64";
}
if (!$user_luajit_xcflags
|| $user_luajit_xcflags !~ /-msse4\.2\b/)
{
# check -msse4.2
my ($out, $cfile) = tempfile("resty-config-XXXXXX",
SUFFIX => '.c', TMPDIR => 1,
UNLINK => 1);
print $out "
int main(void) {
#ifndef __SSE4_2__
# error SSE 4.2 not found
#endif
return 0;
}
";
close $out;
my $ofile = tmpnam();
my $comp = ($cc || 'cc');
my $found;
if (system("$comp -o $ofile -msse4.2 -c $cfile") == 0
&& -s $ofile)
{
unlink $ofile;
if (system("$comp -o $ofile -march=native -c $cfile") == 0
&& -s $ofile)
{
print "INFO: found -msse4.2 in $comp.\n";
$found = 1;
$luajit_xcflags .= " -msse4.2";
}
}
if (-f $ofile) {
unlink $ofile;
}
if (!$found) {
print "WARNING: -msse4.2 not supported in $comp.\n";
}
}
if ($platform eq 'macosx') {
# to work around a bug in the Xcode toolchain in macOS 11.15:
# https://github.com/openresty/homebrew-brew/issues/10

View File

@ -469,6 +469,16 @@ else
echo
fi
answer=`$root/util/ver-ge "$main_ver" 0.6.18`
if [ "$answer" = "Y" ]; then
answer=`$root/util/ver-ge "$main_ver" 1.20.1`
if [ "$answer" = "N" ]; then
echo "$info_txt applying the patch for nginx security advisory (CVE-2021-23017)"
patch -p0 < $root/patches/patch.2021.resolver.txt || exit 1
echo
fi
fi
echo "$info_txt applying the upstream_timeout_fields patch for nginx"
patch -p1 < $root/patches/nginx-$main_ver-upstream_timeout_fields.patch || exit 1
echo
@ -555,7 +565,7 @@ mv openresty-drizzle-nginx-module-* drizzle-nginx-module-$ver || exit 1
#################################
ver=0.10.18rc4
ver=0.10.19
$root/util/get-tarball "https://github.com/openresty/lua-nginx-module/archive/v$ver.tar.gz" -O lua-nginx-module-$ver.tar.gz || exit 1
tar -xzf lua-nginx-module-$ver.tar.gz || exit 1
mv lua-nginx-module-$ver ngx_lua-$ver || exit 1
@ -569,7 +579,7 @@ mv openresty-lua-upstream-nginx-module-* ngx_lua_upstream-$ver || exit 1
#################################
ver=0.0.9rc3
ver=0.0.9
$root/util/get-tarball "https://github.com/openresty/stream-lua-nginx-module/tarball/v$ver" -O stream-lua-nginx-module-$ver.tar.gz || exit 1
tar -xzf stream-lua-nginx-module-$ver.tar.gz || exit 1
mv openresty-stream-lua-nginx-module-* ngx_stream_lua-$ver || exit 1
@ -668,7 +678,7 @@ mv openresty-redis2-nginx-module-* redis2-nginx-module-$ver || exit 1
#################################
ver=0.27rc4
ver=0.27
$root/util/get-tarball "https://github.com/openresty/resty-cli/tarball/v$ver" -O resty-cli-$ver.tar.gz || exit 1
tar -xzf resty-cli-$ver.tar.gz || exit 1
mv openresty-resty-cli-* resty-cli-$ver || exit 1
@ -683,7 +693,7 @@ mv openresty-opm-* opm-$ver || exit 1
#################################
ver=2.1-20201012-2
ver=2.1-20201027
$root/util/get-tarball "https://github.com/openresty/luajit2/archive/v$ver.tar.gz" -O "LuaJIT-$ver.tar.gz" || exit 1
tar -xzf LuaJIT-$ver.tar.gz || exit 1
mv luajit2-* LuaJIT-$ver || exit 1
@ -748,7 +758,7 @@ mv openresty-lua-resty-redis-* lua-resty-redis-$ver || exit 1
#################################
ver=0.23rc1
ver=0.23
$root/util/get-tarball "https://github.com/openresty/lua-resty-mysql/tarball/v$ver" -O "lua-resty-mysql-$ver.tar.gz" || exit 1
tar -xzf lua-resty-mysql-$ver.tar.gz || exit 1
mv openresty-lua-resty-mysql-* lua-resty-mysql-$ver || exit 1
@ -792,7 +802,7 @@ cd ..
#################################
ver=0.08rc1
ver=0.08
$root/util/get-tarball "https://github.com/openresty/lua-resty-websocket/tarball/v$ver" -O "lua-resty-websocket-$ver.tar.gz" || exit 1
tar -xzf lua-resty-websocket-$ver.tar.gz || exit 1
mv openresty-lua-resty-websocket-* lua-resty-websocket-$ver || exit 1
@ -825,7 +835,7 @@ cd ..
#################################
ver=0.1.20rc3
ver=0.1.21
$root/util/get-tarball "https://github.com/openresty/lua-resty-core/tarball/v$ver" -O "lua-resty-core-$ver.tar.gz" || exit 1
tar -xzf lua-resty-core-$ver.tar.gz || exit 1
mv openresty-lua-resty-core-* lua-resty-core-$ver || exit 1

View File

@ -1,7 +1,7 @@
#!/bin/bash
main_ver=1.19.3
minor_ver=1rc1
minor_ver=2
version=$main_ver.$minor_ver
echo $version