Skip to content

AppVeyor: add MinGW builds#8

Closed
MarcelRaad wants to merge 6 commits intomasterfrom
appveyor_mingw
Closed

AppVeyor: add MinGW builds#8
MarcelRaad wants to merge 6 commits intomasterfrom
appveyor_mingw

Conversation

@MarcelRaad
Copy link
Owner

Add a classic MinGW build and a MinGW-w64 build.

@MarcelRaad MarcelRaad force-pushed the appveyor_mingw branch 5 times, most recently from 1f81dc9 to d225fab Compare October 10, 2018 22:57
@MarcelRaad MarcelRaad force-pushed the appveyor_mingw branch 2 times, most recently from 66239de to 33a74fb Compare February 23, 2019 21:34
@MarcelRaad MarcelRaad changed the title AppVeyor: add MinGW builds AppVeyor: add more builds Feb 23, 2019
@MarcelRaad MarcelRaad force-pushed the appveyor_mingw branch 9 times, most recently from 870fa0a to b36d066 Compare February 26, 2019 16:38
@MarcelRaad MarcelRaad changed the title AppVeyor: add more builds AppVeyor: add MinGW builds Feb 26, 2019
bagder and others added 6 commits February 26, 2019 22:18
Follow-up to 180501c

Reported-by: Marcel Raad
Fixes curl#3609
Closes curl#3620
This allows the compiler to pack and align the structs better in
memory. For a rather feature-complete build on x86_64 Linux, gcc 8.1.2
makes the Curl_easy struct 4.9% smaller. From 6312 bytes to 6000.

Removed an unused struct field.

No functionality changes.

Closes curl#3610
Add a MinGW-w64 build using CMake's MSYS Makefiles generator.
Use the Visual Studio 2015 image as it has GCC 8, while the
Visual Studio 2017 image only has GCC 7.2.

Closes
But use the MSYS2 shell rather than the default MSYS shell because of
POSIX path conversion issues. Classic MinGW is only available on the
Visual Studio 2015 image.

Closes
@MarcelRaad MarcelRaad closed this Feb 27, 2019
@MarcelRaad MarcelRaad deleted the appveyor_mingw branch February 27, 2019 21:48
MarcelRaad pushed a commit that referenced this pull request Sep 5, 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
    #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.

3 participants