summaryrefslogtreecommitdiffhomepage
path: root/src/misc/ngx_cpp_test_module.cpp
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2018-11-21 20:23:16 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2018-11-21 20:23:16 +0300
commit58b551612935acfa48bd65777ea6a18336a7e5bf (patch)
tree718cc6fd9a2c41ae0871337e2d4abfdc20b9ce25 /src/misc/ngx_cpp_test_module.cpp
parent04618d00e0775b78ca3349da54366d7bcb4d1774 (diff)
downloadnginx-58b551612935acfa48bd65777ea6a18336a7e5bf.tar.gz
nginx-58b551612935acfa48bd65777ea6a18336a7e5bf.tar.bz2
Mp4: fixed possible pointer overflow on 32-bit platforms.
On 32-bit platforms mp4->buffer_pos might overflow when a large enough (close to 4 gigabytes) atom is being skipped, resulting in incorrect memory addesses being read further in the code. In most cases this results in harmless errors being logged, though may also result in a segmentation fault if hitting unmapped pages. To address this, ngx_mp4_atom_next() now only increments mp4->buffer_pos up to mp4->buffer_end. This ensures that overflow cannot happen.
Diffstat (limited to 'src/misc/ngx_cpp_test_module.cpp')
0 files changed, 0 insertions, 0 deletions