]> git.kaiwu.me - nginx.git/commit
Mp4: avoid zero size buffers in output.
authorRoman Arutyunyan <arut@nginx.com>
Sat, 21 Feb 2026 08:04:36 +0000 (12:04 +0400)
committerRoman Arutyunyan <arutyunyan.roman@gmail.com>
Tue, 24 Mar 2026 14:12:29 +0000 (18:12 +0400)
commit7725c372c2fe11ff908b1d6138be219ad694c42f
treec8f40e57a563b241db735ddb5ad7257523b78b42
parentd787755d50c96b8f0fc1c5c2df62e8ea3bd9031f
Mp4: avoid zero size buffers in output.

Previously, data validation checks did not cover the cases when the output
contained empty buffers.  Such buffers are considered illegal and produce
"zero size buf in output" alerts.  The change rejects the mp4 files which
produce such alerts.

Also, the change fixes possible buffer overread and overwrite that could
happen while processing empty stco and co64 atoms, as reported by
Pavel Kohout (Aisle Research) and Tim Becker.
src/http/modules/ngx_http_mp4_module.c