]> git.kaiwu.me - haproxy.git/commit
BUILD: ssl/ckch: potential null pointer dereference
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 2 Apr 2025 08:02:07 +0000 (10:02 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Wed, 2 Apr 2025 08:02:07 +0000 (10:02 +0200)
commit31bd3627cd627536c749576a357ba0bf8a73b9d1
treed6b36431037b5a234833a332d67dc4f86c6396f2
parent2e8acf54d49c8076b7571bac7c9601068c62a7b9
BUILD: ssl/ckch: potential null pointer dereference

src/ssl_ckch.c: In function ‘ckch_conf_parse’:
src/ssl_ckch.c:4852:40: error: potential null pointer dereference [-Werror=null-dereference]
 4852 |                                 while (*r) {
      |                                        ^~

Add a test on r before using *r.

No backport needed
src/ssl_ckch.c