summaryrefslogtreecommitdiffhomepage
path: root/src/misc/ngx_cpp_test_module.cpp
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2025-11-14 18:14:18 +0400
committerSergey Kandaurov <s.kandaurov@f5.com>2025-12-23 22:40:33 +0400
commit2b502468588835e479fcd76a2cc0d00394f2c32c (patch)
tree4698556291a3dde086aaaa1d2ad121127bf7e3ce /src/misc/ngx_cpp_test_module.cpp
parent35dfd3f1c9e29a1d894ee170a6f9316ef679892a (diff)
downloadnginx-2b502468588835e479fcd76a2cc0d00394f2c32c.tar.gz
nginx-2b502468588835e479fcd76a2cc0d00394f2c32c.tar.bz2
HTTP/2: extended guard for NULL buffer and zero length.
In addition to moving memcpy() under the length condition in 15bf6d8cc, which addressed a reported UB due to string function conventions, this is repeated for advancing an input buffer, to make the resulting code more clean and readable. Additionally, although considered harmless for both string functions and additive operators, as previously discussed in GitHub PR 866, this fixes the main source of annoying sanitizer reports in the module. Prodded by UndefinedBehaviorSanitizer (pointer-overflow).
Diffstat (limited to 'src/misc/ngx_cpp_test_module.cpp')
0 files changed, 0 insertions, 0 deletions