Go to file
Viktor Szakats f42a279ee3
cmake: fix unity with Windows Unicode + TrackMemory
Found the root cause of the startup crash in unity builds with Unicode
and TrackMemory enabled at the same time.

We must make sure that the `memdebug.h` header doesn't apply to
`lib/curl_multibyte.c` (as even noted in a comment there.) In unity
builds all headers apply to all sources, including `curl_multibyte.c`.
This probably resulted in an infinite loop on startup.

Exclude this source from unity compilation with TrackMemory enabled,
in both libcurl and curl tool. Enable unity mode for a debug Unicode
CI job to keep it tested. Also delete the earlier workaround that
fully disabled unity for affected builds.

Follow-up to d82b080f63 #12005
Follow-up to 3f8fc25720 #11095

Closes #11928
2023-10-03 09:43:46 +00:00
.circleci CI: run Circle macOS builds on x86 for now 2023-09-05 22:53:40 -07:00
.github cmake: fix HAVE_LDAP_SSL, HAVE_LDAP_URL_PARSE on non-Windows 2023-10-02 22:19:47 +00:00
.reuse tool: use our own stderr variable 2023-09-28 10:50:56 +00:00
CMake cmake: pre-cache HAVE_POLL_FINE on Windows 2023-10-01 18:02:25 +00:00
docs RELEASE-PROCEDURE.md: updated coming release dates 2023-10-02 13:31:51 +02:00
include curl_multi_get_handles: get easy handles from a multi handle 2023-09-25 20:16:58 +02:00
lib cmake: fix unity with Windows Unicode + TrackMemory 2023-10-03 09:43:46 +00:00
LICENSES copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
m4 autotools: restore HAVE_IOCTL_* detections 2023-10-02 21:19:23 +00:00
packages tidy-up: whitespace fixes 2023-09-28 12:03:28 +00:00
plan9 copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
projects tidy-up: mostly whitespace nits 2023-08-31 23:02:10 +00:00
scripts tool: use our own stderr variable 2023-09-28 10:50:56 +00:00
src cmake: fix unity with Windows Unicode + TrackMemory 2023-10-03 09:43:46 +00:00
tests h2: testcase and fix for pausing h2 streams 2023-09-30 23:53:33 +02:00
winbuild tidy-up: mostly whitespace nits 2023-08-31 23:02:10 +00:00
.azure-pipelines.yml CI/azure: make MAKEFLAGS global to parallelize all jobs 2023-09-26 22:08:39 +00:00
.cirrus.yml CI: remove Windows builds from Cirrus, without replacement 2023-08-31 15:18:28 -07:00
.dcignore copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
.dir-locals.el copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
.git-blame-ignore-revs copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
.gitattributes copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
.gitignore tidy-up: mostly whitespace nits 2023-08-31 23:02:10 +00:00
.mailmap mailmap: unify Michael Osipov under a single email 2023-09-21 14:18:49 +02:00
acinclude.m4 autotools: adjust CURL_CA_PATH value to CMake 2023-09-30 15:17:21 +00:00
appveyor.yml cmake: fix unity with Windows Unicode + TrackMemory 2023-10-03 09:43:46 +00:00
buildconf copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
buildconf.bat copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
CHANGES
CMakeLists.txt cmake: fix unity with Windows Unicode + TrackMemory 2023-10-03 09:43:46 +00:00
configure.ac autotools: restore HAVE_IOCTL_* detections 2023-10-02 21:19:23 +00:00
COPYING copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
curl-config.in copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
GIT-INFO GIT-INFO: add --with-openssl 2023-05-14 23:22:23 +02:00
libcurl.def curl_multi_get_handles: get easy handles from a multi handle 2023-09-25 20:16:58 +02:00
libcurl.pc.in copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
MacOSX-Framework copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
Makefile.am cmake: add support for single libcurl compilation pass 2023-08-01 08:12:26 +00:00
Makefile.dist copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
maketgz copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
README
README.md tidy-up: mostly whitespace nits 2023-08-31 23:02:10 +00:00
RELEASE-NOTES RELEASE-NOTES: synced 2023-10-02 09:41:33 +02:00
SECURITY.md SECURITY-PROCESS.md. call it vulnerability disclosure policy 2023-09-14 17:04:33 +02:00

curl logo

Curl is a command-line tool for transferring data specified with URL syntax. Find out how to use curl by reading the curl.1 man page or the MANUAL document. Find out how to install Curl by reading the INSTALL document.

libcurl is the library curl is using to do its job. It is readily available to be used by your software. Read the libcurl.3 man page to learn how.

You can find answers to the most frequent questions we get in the FAQ document.

Study the COPYING file for distribution terms.

Contact

If you have problems, questions, ideas or suggestions, please contact us by posting to a suitable mailing list.

All contributors to the project are listed in the THANKS document.

Commercial support

For commercial support, maybe private and dedicated help with your problems or applications using (lib)curl visit the support page.

Website

Visit the curl website for the latest news and downloads.

Git

To download the latest source from the Git server, do this:

git clone https://github.com/curl/curl.git

(you will get a directory named curl created, filled with the source code)

Security problems

Report suspected security problems via our HackerOne page and not in public.

Notice

Curl contains pieces of source code that is Copyright (c) 1998, 1999 Kungliga Tekniska Högskolan. This notice is included here to comply with the distribution terms.

Backers

Thank you to all our backers! 🙏 Become a backer.

Sponsors

Support this project by becoming a sponsor.