Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CURL to 7.88.1 #6

Merged
merged 4 commits into from
Oct 26, 2023
Merged

Conversation

hjmallon
Copy link

@hjmallon hjmallon commented Feb 28, 2023

I find the hunterisation of this project hard to follow. There are a lot of changes, some which change or revert previous commits in the hunterisation and some which make unnecessary changes (e.g. there seems to be a load of newline changes?).

Perhaps we can save ourselves some time when rebasing this going forwards by trying to clean up the history in here. Current hunter version is 7.74 from December 2020 and there have been 15 releases since then (latest one today is 7.88.1).

So this is currently a draft change, and I would appreciate if interested parties could run some tests and help me get it up and running. We will probably need to iterate on it a bit since CURL is quite flexible platform and dependancy wise.

Update of: #5

@hjmallon hjmallon marked this pull request as draft February 28, 2023 18:55
@hjmallon hjmallon marked this pull request as ready for review March 9, 2023 13:31
@rbsheth rbsheth merged commit 25d45e8 into cpp-pm:hunter-7.88.1 Oct 26, 2023
hjmallon pushed a commit that referenced this pull request Oct 26, 2023
`u->path = Curl_memdup(path, pathlen + 1);` accesses bytes after the null-terminator.

```
==2676==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x04d48c75 at pc 0x0112708a bp 0x006fb7e0 sp 0x006fb3c4
READ of size 78 at 0x04d48c75 thread T0
    #0 0x1127089 in __asan_wrap_memcpy D:\a\_work\1\s\src\vctools\asan\llvm\compiler-rt\lib\sanitizer_common\sanitizer_common_interceptors.inc:840
    #1 0x1891a0e in Curl_memdup C:\actions-runner\_work\client\client\third_party\curl\lib\strdup.c:97
    #2 0x18db4b0 in parseurl C:\actions-runner\_work\client\client\third_party\curl\lib\urlapi.c:1297
    #3 0x18db819 in parseurl_and_replace C:\actions-runner\_work\client\client\third_party\curl\lib\urlapi.c:1342
    #4 0x18d6e39 in curl_url_set C:\actions-runner\_work\client\client\third_party\curl\lib\urlapi.c:1790
    #5 0x1877d3e in parseurlandfillconn C:\actions-runner\_work\client\client\third_party\curl\lib\url.c:1768
    #6 0x1871acf in create_conn C:\actions-runner\_work\client\client\third_party\curl\lib\url.c:3403
    #7 0x186d8dc in Curl_connect C:\actions-runner\_work\client\client\third_party\curl\lib\url.c:3888
    #8 0x1856b78 in multi_runsingle C:\actions-runner\_work\client\client\third_party\curl\lib\multi.c:1982
    curl#9 0x18531e3 in curl_multi_perform C:\actions-runner\_work\client\client\third_party\curl\lib\multi.c:2756
```

Closes curl#11560
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.

2 participants