summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2025-11-14 18:14:18 +0400
committerSergey Kandaurov <s.kandaurov@f5.com>2025-11-19 18:52:54 +0400
commit6ed1188411882086e3518eda779ab782d8ab4d3f (patch)
tree8d4e3f7f062940e9ef7ade2a1255febc75f71441 /src/http/modules
parent9d04b6630aa77de45d8946f84edfc6c174f15c70 (diff)
downloadnginx-6ed1188411882086e3518eda779ab782d8ab4d3f.tar.gz
nginx-6ed1188411882086e3518eda779ab782d8ab4d3f.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/http/modules')
0 files changed, 0 insertions, 0 deletions