diff options
| author | CodeByMoriarty <czyrabriones4@gmail.com> | 2026-02-22 16:45:47 -0800 |
|---|---|---|
| committer | Roman Arutyunyan <arutyunyan.roman@gmail.com> | 2026-03-24 22:33:23 +0400 |
| commit | 4f0df130ba72982d34984f38d5007898765716b8 (patch) | |
| tree | 68ba242992fb762caf54794c0b669eba04964594 /src/misc/ngx_cpp_test_module.cpp | |
| parent | 246c7444996fa1eafc9cee8bf06fe26fe892bb4a (diff) | |
| download | nginx-4f0df130ba72982d34984f38d5007898765716b8.tar.gz nginx-4f0df130ba72982d34984f38d5007898765716b8.tar.bz2 | |
Mp4: validate sync sample values in stss atom.
Per ISO 14496-12 Section 8.6.2, sync sample numbers must be 1-based.
A zero-valued stss entry caused ngx_http_mp4_seek_key_frame() to
return a key_prefix exceeding the samples consumed in the forward
stts pass, which led the backward loop in ngx_http_mp4_crop_stts_data()
to walk past the beginning of the stts data buffer.
The fix validates each stss entry in ngx_http_mp4_seek_key_frame()
and returns an error if a zero sync sample is encountered. The
function signature is changed to return ngx_int_t so it can signal
errors to the caller.
Diffstat (limited to 'src/misc/ngx_cpp_test_module.cpp')
0 files changed, 0 insertions, 0 deletions
