http: avoid length underflow in Curl_compareheader

Closes #22338
This commit is contained in:
Graham Campbell 2026-07-16 16:30:19 +01:00 committed by Daniel Stenberg
parent b41c28e70a
commit f0f84d1251
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 10 additions and 1 deletions

View file

@ -19,7 +19,7 @@ Curl_compareheader unit test
<verify>
<stdout mode="text">
31 invokes
33 invokes
</stdout>
</verify>
</testcase>