An official read-only mirror of http://hg.nginx.org/nginx/ which is updated hourly. Pull requests on GitHub cannot be accepted and will be automatically closed. The proper way to submit changes to nginx is via the nginx development mailing list, see http://nginx.org/en/docs/contributing_changes.html
Go to file
Roman Arutyunyan f19b06a5b8 Mp4: unordered stsc chunks error for the final chunk.
Currently an error is triggered if any of the chunk runs in stsc are
unordered.  This however does not include the final chunk run, which
ends with trak->chunks + 1.  The previous chunk index can be larger
leading to a 32-bit overflow.  This could allow to skip the validity
check "if (start_sample > n)".  This could later lead to a large
trak->start_chunk/trak->end_chunk, which would be caught later in
ngx_http_mp4_update_stco_atom() or ngx_http_mp4_update_co64_atom().

While there are no implications of the validity check being avoided,
the change still adds a check to ensure the final chunk run is ordered,
to produce a meaningful error and avoid a potential integer overflow.
2025-02-05 19:27:05 +04:00
auto Configure: MSVC compatibility with PCRE2 10.43. 2025-02-05 19:27:05 +04:00
conf MIME: added image/avif type. 2021-10-25 20:49:15 +03:00
contrib Contrib: vim syntax, update core and 3rd party module directives. 2023-07-24 18:04:41 +03:00
docs Moved LICENSE and README to root. 2025-02-05 19:27:05 +04:00
misc Moved LICENSE and README to root. 2025-02-05 19:27:05 +04:00
src Mp4: unordered stsc chunks error for the final chunk. 2025-02-05 19:27:05 +04:00
.hgtags release-1.26.2 tag 2024-08-12 18:28:31 +04:00
LICENSE Moved LICENSE and README to root. 2025-02-05 19:27:05 +04:00
README Moved LICENSE and README to root. 2025-02-05 19:27:05 +04:00

Documentation is available at http://nginx.org