]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
mod_md: change types of fields of ocsp_summary_ctx_t
authorJoe Orton <jorton@apache.org>
Thu, 18 Dec 2025 12:50:42 +0000 (12:50 +0000)
committerJoe Orton <jorton@apache.org>
Thu, 18 Dec 2025 12:50:42 +0000 (12:50 +0000)
commitb6f3d786f660be49d035998b41a9f93b27751cd9
tree65daf18b80930b1b60e140714b3b381eecb5d28b
parent8169261a0981889ade2ab6f05143562ed7dd6fc8
mod_md: change types of fields of ocsp_summary_ctx_t

The number of members in ostat_by_id may be up to UINT_MAX
and there are no guarantees that all types of members (good,
revoked or unknown) are present. An integer overflow may also
occur in md_ocsp_get_summary() when they are summed as ints.

Change types of good, revoked and unknown to unsigned.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Submitted by: Anastasia Belova <nabelova31 gmail.com>
Github: closes #534

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1930710 13f79535-47bb-0310-9956-ffa450edef68
modules/md/md_ocsp.c