| update third-party curl from 8.6.0 to 8.8.0 Signed-off-by: lizefan <lizefan3@huawei.com> | 1 年前 |
| 升级curl到v8.4.0 Signed-off-by: 徐杰 <xujie223@huawei.com> | 2 年前 |
| update curl to V8.6.0 Signed-off-by: liuxiyao223 <liuxiyao223@huawei.com> | 2 年前 |
| update third-party curl from 8.6.0 to 8.8.0 Signed-off-by: lizefan <lizefan3@huawei.com> | 1 年前 |
| 升级curl到v8.4.0 Signed-off-by: 徐杰 <xujie223@huawei.com> | 2 年前 |
| update third-party curl from 8.6.0 to 8.8.0 Signed-off-by: lizefan <lizefan3@huawei.com> | 1 年前 |
| update third-party curl from 8.6.0 to 8.8.0 Signed-off-by: lizefan <lizefan3@huawei.com> | 1 年前 |
| 升级curl到v8.4.0 Signed-off-by: 徐杰 <xujie223@huawei.com> | 2 年前 |
| update third-party curl from 8.6.0 to 8.8.0 Signed-off-by: lizefan <lizefan3@huawei.com> | 1 年前 |
| 升级curl到v8.4.0 Signed-off-by: 徐杰 <xujie223@huawei.com> | 2 年前 |
| 升级curl到v8.4.0 Signed-off-by: 徐杰 <xujie223@huawei.com> | 2 年前 |
| 升级curl到v8.4.0 Signed-off-by: 徐杰 <xujie223@huawei.com> | 2 年前 |
| update third-party curl from 8.6.0 to 8.8.0 Signed-off-by: lizefan <lizefan3@huawei.com> | 1 年前 |
| 升级curl到v8.4.0 Signed-off-by: 徐杰 <xujie223@huawei.com> | 2 年前 |
| 升级curl到v8.4.0 Signed-off-by: 徐杰 <xujie223@huawei.com> | 2 年前 |
| 升级curl到v8.4.0 Signed-off-by: 徐杰 <xujie223@huawei.com> | 2 年前 |
| windows: use built-in _WIN32 macro to detect Windows Windows compilers define _WIN32 automatically. Windows SDK headers or build env defines WIN32, or we have to take care of it. The agreement seems to be that _WIN32 is the preferred practice here. Make the source code rely on that to detect we're building for Windows. Public curl.h was using WIN32, __WIN32__ and CURL_WIN32 for Windows detection, next to the official _WIN32. After this patch it only uses _WIN32 for this. Also, make it stop defining CURL_WIN32. There is a slight chance these break compatibility with Windows compilers that fail to define _WIN32. I'm not aware of any obsolete or modern compiler affected, but in case there is one, one possible solution is to define this macro manually. grepping for WIN32 remains useful to discover Windows-specific code. Also: - extend checksrc to ensure we're not using WIN32 anymore. - apply minor formatting here and there. - delete unnecessary checks for !MSDOS when _WIN32 is present. Co-authored-by: Jay Satiro Reviewed-by: Daniel Stenberg Closes #12376 | 2 年前 |
| autotools: stop setting -std=gnu89 with --enable-warnings Do not alter the C standard when building with --enable-warnings when building with gcc. On one hand this alters warning results compared to a default build. On the other, it may produce different binaries, which is unexpected. Also fix new warnings that appeared after removing -std=gnu89: - include: fix public curl headers to use the correct printf mask for CURL_FORMAT_CURL_OFF_T and CURL_FORMAT_CURL_OFF_TU with mingw-w64 and Visual Studio 2013 and newer. This fixes the printf mask warnings in examples and tests. E.g. [1] - conncache: fix printf format string [2]. - http2: fix potential null pointer dereference [3]. (seen on Slackware with gcc 11.) - libssh: fix printf format string in SFTP code [4]. Also make MSVC builds compatible with old CRT versions. - libssh2: fix printf format string in SFTP code for MSVC. Applying the same fix as for libssh above. - unit1395: fix argument is null and related issues [5]: - stop calling strcmp() with NULL to avoid undefined behaviour. - fix checking results if some of them were NULL. - do not pass NULL to printf %s. - ci: keep a build job with -std=gnu89 to continue testing for C89-compliance. We can apply this to other gcc jobs as needed. Ref: b23ce2cee7329bbf425f18b49973b7a5f23dfcb4 (2022-09-23) #9542 [1] https://dev.azure.com/daniel0244/curl/_build/results?buildId=18581&view=logs&jobId=ccf9cc6d-2ef1-5cf2-2c09-30f0c14f923b [2] https://github.com/curl/curl/actions/runs/6896854263/job/18763831142?pr=12346#step:6:67 [3] https://github.com/curl/curl/actions/runs/6896854253/job/18763839238?pr=12346#step:30:214 [4] https://github.com/curl/curl/actions/runs/6896854253/job/18763838007?pr=12346#step:29:895 [5] https://github.com/curl/curl/actions/runs/6896854253/job/18763836775?pr=12346#step:33:1689 Closes #12346 | 2 年前 |
| 升级curl到v8.4.0 Signed-off-by: 徐杰 <xujie223@huawei.com> | 2 年前 |
| 升级curl到v8.4.0 Signed-off-by: 徐杰 <xujie223@huawei.com> | 2 年前 |
| mprintf: overhaul and bugfixes In a test case using lots of snprintf() calls using many commonly used %-codes per call, this version is around 30% faster than previous version. It also fixes the #12561 bug which made it not behave correctly when given unknown %-sequences. Fixing that flaw required a different take on the problem, which resulted in the new two-arrays model. lib557: extended - Verify the #12561 fix and test more printf features unit1398: fix test: It used a <num>$ only for one argument, which is not supported. Fixes #12561 Closes #12563 | 2 年前 |
| 升级curl到v8.4.0 Signed-off-by: 徐杰 <xujie223@huawei.com> | 2 年前 |
| 升级curl到v8.4.0 Signed-off-by: 徐杰 <xujie223@huawei.com> | 2 年前 |
| 升级curl到v8.4.0 Signed-off-by: 徐杰 <xujie223@huawei.com> | 2 年前 |
| 升级curl到v8.4.0 Signed-off-by: 徐杰 <xujie223@huawei.com> | 2 年前 |
| update third-party curl from 8.6.0 to 8.8.0 Signed-off-by: lizefan <lizefan3@huawei.com> | 1 年前 |
| windows: use built-in _WIN32 macro to detect Windows Windows compilers define _WIN32 automatically. Windows SDK headers or build env defines WIN32, or we have to take care of it. The agreement seems to be that _WIN32 is the preferred practice here. Make the source code rely on that to detect we're building for Windows. Public curl.h was using WIN32, __WIN32__ and CURL_WIN32 for Windows detection, next to the official _WIN32. After this patch it only uses _WIN32 for this. Also, make it stop defining CURL_WIN32. There is a slight chance these break compatibility with Windows compilers that fail to define _WIN32. I'm not aware of any obsolete or modern compiler affected, but in case there is one, one possible solution is to define this macro manually. grepping for WIN32 remains useful to discover Windows-specific code. Also: - extend checksrc to ensure we're not using WIN32 anymore. - apply minor formatting here and there. - delete unnecessary checks for !MSDOS when _WIN32 is present. Co-authored-by: Jay Satiro Reviewed-by: Daniel Stenberg Closes #12376 | 2 年前 |
| 升级curl到v8.4.0 Signed-off-by: 徐杰 <xujie223@huawei.com> | 2 年前 |
| 升级curl到v8.4.0 Signed-off-by: 徐杰 <xujie223@huawei.com> | 2 年前 |
| update third-party curl from 8.6.0 to 8.8.0 Signed-off-by: lizefan <lizefan3@huawei.com> | 1 年前 |
| 升级curl到v8.4.0 Signed-off-by: 徐杰 <xujie223@huawei.com> | 2 年前 |
| 升级curl到v8.4.0 Signed-off-by: 徐杰 <xujie223@huawei.com> | 2 年前 |
| 升级curl到v8.4.0 Signed-off-by: 徐杰 <xujie223@huawei.com> | 2 年前 |
| 升级curl到v8.4.0 Signed-off-by: 徐杰 <xujie223@huawei.com> | 2 年前 |
| 升级curl到v8.4.0 Signed-off-by: 徐杰 <xujie223@huawei.com> | 2 年前 |
| 升级curl到v8.4.0 Signed-off-by: 徐杰 <xujie223@huawei.com> | 2 年前 |
| update third-party curl from 8.6.0 to 8.8.0 Signed-off-by: lizefan <lizefan3@huawei.com> | 1 年前 |
| update third-party curl from 8.6.0 to 8.8.0 Signed-off-by: lizefan <lizefan3@huawei.com> | 1 年前 |
| update third-party curl from 8.6.0 to 8.8.0 Signed-off-by: lizefan <lizefan3@huawei.com> | 1 年前 |
| 升级curl到v8.4.0 Signed-off-by: 徐杰 <xujie223@huawei.com> | 2 年前 |
| update third-party curl from 8.6.0 to 8.8.0 Signed-off-by: lizefan <lizefan3@huawei.com> | 1 年前 |
| build: fix some -Wsign-conversion/-Warith-conversion warnings - enable -Wsign-conversion warnings, but also setting them to not raise errors. - fix -Warith-conversion warnings seen in CI. These are triggered by -Wsign-converion and causing errors unless explicitly silenced. It makes more sense to fix them, there just a few of them. - fix some -Wsign-conversion warnings. - hide -Wsign-conversion warnings with a #pragma. - add macro CURL_WARN_SIGN_CONVERSION to unhide them on a per-build basis. - update a CI job to unhide them with the above macro: https://github.com/curl/curl/actions/workflows/linux.yml -> OpenSSL -O3 Closes #12492 | 2 年前 |
| build: enable missing OpenSSF-recommended warnings, with fixes https://best.openssf.org/Compiler-Hardening-Guides/Compiler-Options-Hardening-Guide-for-C-and-C++.html as of 2023-11-29 [1]. Enable new recommended warnings (except -Wsign-conversion): - enable -Wformat=2 for clang (in both cmake and autotools). - add CURL_PRINTF() internal attribute and mark functions accepting printf arguments with it. This is a copy of existing CURL_TEMP_PRINTF() but using __printf__ to make it compatible with redefinting the printf symbol: https://gcc.gnu.org/onlinedocs/gcc-3.0.4/gcc_5.html#SEC94 - fix CURL_PRINTF() and existing CURL_TEMP_PRINTF() for mingw-w64 and enable it on this platform. - enable -Wimplicit-fallthrough. - enable -Wtrampolines. - add -Wsign-conversion commented with a FIXME. - cmake: enable -pedantic-errors the way we do it with autotools. Follow-up to d5c0351055d5709da8f3e16c91348092fdb481aa #2747 - lib/curl_trc.h: use CURL_FORMAT(), this also fixes it to enable format checks. Previously it was always disabled due to the internal printf macro. Fix them: - fix bug where an set_ipv6_v6only() call was missed in builds with --disable-verbose / CURL_DISABLE_VERBOSE_STRINGS=ON. - add internal FALLTHROUGH() macro. - replace obsolete fall-through comments with FALLTHROUGH(). - fix fallthrough markups: Delete redundant ones (showing up as warnings in most cases). Add missing ones. Fix indentation. - silence -Wformat-nonliteral warnings with llvm/clang. - fix one -Wformat-nonliteral warning. - fix new -Wformat and -Wformat-security warnings. - fix CURL_FORMAT_SOCKET_T value for mingw-w64. Also move its definition to lib/curl_setup.h allowing use in tests/server. - lib: fix two wrongly passed string arguments in log outputs. Co-authored-by: Jay Satiro - fix new -Wformat warnings on mingw-w64. [1] https://github.com/ossf/wg-best-practices-os-developers/blob/56c0fde3895bfc55c8a973ef49a2572c507b2ae1/docs/Compiler-Hardening-Guides/Compiler-Options-Hardening-Guide-for-C-and-C%2B%2B.md Closes #12489 | 2 年前 |
| 升级curl到v8.4.0 Signed-off-by: 徐杰 <xujie223@huawei.com> | 2 年前 |
| 升级curl到v8.4.0 Signed-off-by: 徐杰 <xujie223@huawei.com> | 2 年前 |
| 升级curl到v8.4.0 Signed-off-by: 徐杰 <xujie223@huawei.com> | 2 年前 |
| update third-party curl from 8.6.0 to 8.8.0 Signed-off-by: lizefan <lizefan3@huawei.com> | 1 年前 |
| 升级curl到v8.4.0 Signed-off-by: 徐杰 <xujie223@huawei.com> | 2 年前 |
| update third-party curl from 8.6.0 to 8.8.0 Signed-off-by: lizefan <lizefan3@huawei.com> | 1 年前 |
| 升级curl到v8.4.0 Signed-off-by: 徐杰 <xujie223@huawei.com> | 2 年前 |
| 升级curl到v8.4.0 Signed-off-by: 徐杰 <xujie223@huawei.com> | 2 年前 |
| 升级curl到v8.4.0 Signed-off-by: 徐杰 <xujie223@huawei.com> | 2 年前 |
| update third-party curl from 8.6.0 to 8.8.0 Signed-off-by: lizefan <lizefan3@huawei.com> | 1 年前 |
| update third-party curl from 8.6.0 to 8.8.0 Signed-off-by: lizefan <lizefan3@huawei.com> | 1 年前 |
| update third-party curl from 8.6.0 to 8.8.0 Signed-off-by: lizefan <lizefan3@huawei.com> | 1 年前 |