Repository navigation
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues for the compiler-compatibility changes.
No open issues 🎉
What changed in this PR
Updates the hitch 1.8.0 wolfSSL integration patch to resolve GCC 15 and C23 build errors, supporting removal of the temporary CI pin to Ubuntu 24.04.
Changes:
- Reorders
callocarguments inALLOC_OBJto avoid transposed-argument warnings. - Makes
strchrresult pointers const-correct insni_matchandsni_lookup.
| File | Description |
|---|---|
hitch/hitch_1.8.0.patch |
Adds compiler-compatibility fixes for allocation and SNI lookup code. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
hitch 1.8.0 fails to build with GCC 15 (Ubuntu 26.04, now
ubuntu-latest), which breaks wolfSSL's hitch CI job; wolfSSL/wolfssl#12130 pinned that job to ubuntu-24.04 until this lands. The patch now also carries two fixes from hitch upstream that postdate the 1.8.0 release:src/foreign/miniobj.h:ALLOC_OBJpassescalloc(1, sizeof *(to)), from varnish/hitch ad7262cc, for-Werror=calloc-transposed-argssrc/hitch.c: thestrchr()results insni_match()andsni_lookup()areconst char *, the same change as the open Fix -Wdiscarded-qualifiers errors in sni_match and sni_lookup varnish/hitch#404, for-Werror=discarded-qualifiers(under C23, glibc'sstrchron aconst char *returnsconst char *; the pointer is only read)Both can be dropped from the patch once hitch releases them.
Testing
In an
ubuntu:26.04container (GCC 15.2) with wolfSSL built--enable-hitch: the current patch fails with the three errors seen in wolfSSL's hitch CI job; with this change hitch builds, links against wolfSSL andmake checkgives the same result as CI on ubuntu-24.04 (no failures, the same three tests skipped). The regenerated patch is otherwise identical to the current one.