Skip to content

vendor : update cpp-httplib to 0.48.0 - #24787

Merged
taronaeo merged 1 commit into
ggml-org:masterfrom
cabelo:cpp-httplib-0.48.0
Jun 19, 2026
Merged

taronaeo merged 1 commit into
ggml-org:masterfrom
cabelo:cpp-httplib-0.48.0

Conversation

@cabelo

@cabelo cabelo commented Jun 19, 2026 •

Copy link
Copy Markdown
Contributor

Overview

Additional information

Requirements

What's Changed

v0.48.0

Security fixes

  • Complete the IP-host certificate identity fix from v0.47.0 for the Mbed TLS and wolfSSL backends. An IP-literal host is now authenticated only via a matching iPAddress SAN, never via the certificate's Common Name (RFC 9110) — matching what the OpenSSL backend already enforces through X509_check_ip. Previously these backends fell back to the CN when no IP SAN matched, and recognized IPv4 only; now IPv6 (16-byte) iPAddress SANs are matched as well, and the CN fallback is skipped for both IPv4 and IPv6 literal hosts.

Improvements

  • Replace the strtod-based from_chars for double with a hand-written, locale-independent parser. The only double parsed by the library is the HTTP quality value; strtod reads the decimal separator from the global C locale, so an embedder calling setlocale(LC_ALL, "") into a comma-decimal locale would mis-parse q-values. The new parser always treats . as the decimal separator and is allocation-free.
  • Fix OpenSSL 4.0 deprecation warnings: fetch CA store objects via the thread-safe X509_STORE_get1_objects() (OpenSSL 3.3+) and extract the subject CN via X509_NAME_get_index_by_NID()/X509_NAME_get_entry() instead of the deprecated X509_STORE_get0_objects() and X509_NAME_get_text_by_NID(). Older OpenSSL, BoringSSL, and LibreSSL keep using the get0 path. Verified warning-free against OpenSSL 4.0.1, 3.6.2, and 3.0

Behavior changes

  • decode_query_component() now uses strict hex parsing for percent-escapes, consistent with decode_uri_component() and decode_path_component(). A % followed by non-hex characters (e.g. a sign or whitespace such as %-1, %+5, % 5) is passed through literally instead of being accepted as a valid escape

@cabelo
cabelo requested a review from ggerganov as a code owner June 19, 2026 00:27
@github-actions github-actions Bot added script Script related python python script changes labels Jun 19, 2026

@CISC CISC left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- v0.40.0
+ v0.48.0

@taronaeo

Copy link
Copy Markdown
Member

CI failure unrelated to PR. Merging.

@taronaeo
taronaeo merged commit 0d2d9cc into ggml-org:master Jun 19, 2026
27 of 28 checks passed
@cabelo

cabelo commented Jun 20, 2026 •

Copy link
Copy Markdown
Contributor Author
- v0.40.0
+ v0.48.0

Thank You

jimbothigpen added a commit to jimbothigpen/af-engn that referenced this pull request Jun 20, 2026
Absorbs PRs ggml-org#24821 ggml-org#24796 ggml-org#24779 ggml-org#24817 ggml-org#23168 ggml-org#24787 ggml-org#24801 ggml-org#24794
ggml-webgpu F16 toggles, server router/agent refactor, cpp-httplib 0.48.0,
utf8 windows fix, docker UI build. No conflicts with our custom backends.
adrianhoehne pushed a commit to adrianhoehne/llama.cpp that referenced this pull request Jul 5, 2026
zommiommy pushed a commit to zommiommy/llama.cpp that referenced this pull request Aug 18, 2026
zbrad pushed a commit to zbrad/llama.cpp that referenced this pull request Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python python script changes script Script related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants