bugfix: applied a patch to the nginx core to fix the memory invalid reads when exceeding the pre-configured limits in an ngx_hash_t hash table. also upgraded ngx_lua to 0.9.13rc1.

This commit is contained in:
Yichun Zhang (agentzh)
2014-10-06 23:45:48 -07:00
parent dde4c94fd0
commit 445ca90f06
2 changed files with 25 additions and 1 deletions

View File

@ -270,6 +270,10 @@ echo "$info_txt applying the resolver_del_event_invalid_read patch for nginx"
patch -p1 < $root/patches/nginx-$main_ver-resolver_del_event_invalid_read.patch || exit 1
echo
echo "$info_txt applying the hash_overflow patch for nginx"
patch -p1 < $root/patches/nginx-$main_ver-hash_overflow.patch || exit 1
echo
rm -f *.patch || exit 1
cd .. || exit 1
@ -339,7 +343,7 @@ mv openresty-drizzle-nginx-module-* drizzle-nginx-module-$ver || exit 1
#################################
ver=0.9.12
ver=0.9.13rc1
$root/util/get-tarball "https://github.com/openresty/lua-nginx-module/tarball/v$ver" -O lua-nginx-module-$ver.tar.gz || exit 1
tar -xzf lua-nginx-module-$ver.tar.gz || exit 1
mv openresty-lua-nginx-module-* ngx_lua-$ver || exit 1