[PATCH] hostcheck: fix host name wildcard checking
authorDaniel Stenberg <daniel@haxx.se>
Mon, 24 Apr 2023 19:07:02 +0000 (21:07 +0200)
committerCarlos Henrique Lima Melara <charlesmelara@riseup.net>
Fri, 15 Sep 2023 17:01:23 +0000 (18:01 +0100)
commitb8251124db329f129e3327e41b913b4d6e9c80bb
tree7079b6d4973f115f4a357371090ec9281c01c62e
parentf384fc563ea8a9909bf993786896154d831aec07
[PATCH] hostcheck: fix host name wildcard checking

The leftmost "label" of the host name can now only match against single
'*'. Like the browsers have worked for a long time.

- extended unit test 1397 for this
- move some SOURCE variables from unit/Makefile.am to unit/Makefile.inc

Reported-by: Hiroki Kurosawa
Closes #11018

Backported to Debian by Samuel Henrique <samueloph@debian.org>

Gbp-Pq: Name CVE-2023-28321.patch
lib/vtls/hostcheck.c
tests/data/test1397
tests/unit/unit1397.c