Skip to content

Fix strchr() and related functions for ISO C23 compliance#3570

Open
purofle wants to merge 78 commits intowarmcat:mainfrom
purofle:fix-build-glibc
Open

Fix strchr() and related functions for ISO C23 compliance#3570
purofle wants to merge 78 commits intowarmcat:mainfrom
purofle:fix-build-glibc

Conversation

@purofle
Copy link
Copy Markdown
Contributor

@purofle purofle commented Apr 9, 2026

Since glibc-2.43:

For ISO C23, the functions bsearch, memchr, strchr, strpbrk, strrchr, strstr, wcschr, wcspbrk, wcsrchr, wcsstr and wmemchr that return pointers into their input arrays now have definitions as macros that return a pointer to a const-qualified type when the input argument is a pointer to a const-qualified type.

The compilation test passed on my Glibc 2.43 system.

lws-team and others added 15 commits April 7, 2026 15:27
Since glibc-2.43:

For ISO C23, the functions bsearch, memchr, strchr, strpbrk, strrchr,
strstr, wcschr, wcspbrk, wcsrchr, wcsstr and wmemchr that return pointers
into their input arrays now have definitions as macros that return a
pointer to a const-qualified type when the input argument is a pointer
to a const-qualified type.

Signed-off-by: purofle <yuguo.or@isrc.iscas.ac.cn>
Includes ${EXTIP4} and ${EXTIP6} for signing server's external IPs.

${DANE0} and ${DANE1} interpret the dane definition that's ongoing and look
for the matching tls certificate to produce the hash
These are from 16 old Coverity hits that I dismissed in my Coverity UI...
of course any other coverity user testing it doesn't get to know my
assessment.

So these are an attempt to silence these false positives by either
commenting the code as OK for Coverity to read, or modifying it to avoid
whatever it thought was happening the other way.
This simpifies enabling build of the -camshow example by LWS_WITH_WEBRTC
Normally mounts are happening at URL "directories"... this new extact_match
("exact-match" for lejp-conf) bool allows you to force the whole mountpoint
path to match, so you can apply a mount at a specific path including the
filename when you need to.
@lws-team lws-team force-pushed the main branch 6 times, most recently from 9703105 to b1c5c37 Compare April 28, 2026 05:30
BearSSL just doesn't address DTLS.  Otherwise it should be a full
client-server TLS implementation.
@lws-team lws-team force-pushed the main branch 11 times, most recently from 81c372a to 4a63b93 Compare May 5, 2026 14:25
@lws-team lws-team force-pushed the main branch 5 times, most recently from 89537f6 to 9d37567 Compare May 8, 2026 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants