mirror of https://github.com/openresty/openresty
patch: added security patch for ngx_http_mp4_module (CVE-2018-16845).
Bumped release number to v1.13.6.3.pull/417/head
parent
116b8fe20d
commit
8c8c9041e0
@ -0,0 +1,16 @@
|
||||
--- src/http/modules/ngx_http_mp4_module.c
|
||||
+++ src/http/modules/ngx_http_mp4_module.c
|
||||
@@ -942,6 +942,13 @@ ngx_http_mp4_read_atom(ngx_http_mp4_file
|
||||
atom_size = ngx_mp4_get_64value(atom_header + 8);
|
||||
atom_header_size = sizeof(ngx_mp4_atom_header64_t);
|
||||
|
||||
+ if (atom_size < sizeof(ngx_mp4_atom_header64_t)) {
|
||||
+ ngx_log_error(NGX_LOG_ERR, mp4->file.log, 0,
|
||||
+ "\"%s\" mp4 atom is too small:%uL",
|
||||
+ mp4->file.name.data, atom_size);
|
||||
+ return NGX_ERROR;
|
||||
+ }
|
||||
+
|
||||
} else {
|
||||
ngx_log_error(NGX_LOG_ERR, mp4->file.log, 0,
|
||||
"\"%s\" mp4 atom is too small:%uL",
|
Loading…
Reference in New Issue