curl: Backport SOCKS5 heap buffer overflow fix from curl 8.4.0 Backport upstream curl commit `fb4415d8ae` (socks: return error if hostname too long for remote resolve, 2023-10-11, curl-8_4_0~2) to address CVE-2023-38545. Issue: #25329