| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
tool: use our own stderr variable Earlier this year we changed our own stderr variable to use the standard name stderr (to avoid bugs where someone is using stderr instead of the curl-tool specific variable). This solution needed to override the standard stderr symbol via the preprocessor. This in turn didn't play well with unity builds and caused curl tool to crash or stay silent due to an uninitialized stderr. This was a hard to find issue, fixed by manually breaking out one file from the unity sources. To avoid two these two tricks, this patch implements a different solution: Restore using our own local variable for our stderr output and leave stderr as-is. To avoid using stderr by mistake, add a checksrc rule (based on logic we already used in lib for strerror) that detects any stderr use in src and points to using our own variable instead: tool_stderr. Follow-up to 06133d3e9b8aeb9e9ca0b3370c246bdfbfc8619e Follow-up to 2f17a9b654121dd1ecf4fc043c6d08a9da3522db Closes #11958 | 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 curl to V8.6.0 Signed-off-by: liuxiyao223 <liuxiyao223@huawei.com> | 2 年前 | |
curl: move IPFS code into src/tool_ipfs.[ch] - convert ensure_trailing into ensure_trailing_slash - strdup the URL string to own it proper - use shorter variable names - combine some expressions - simplify error handling in ipfs_gateway() - add MAX_GATEWAY_URL_LEN + proper bailout if maximum is reached - ipfs-gateway.d polish and simplification - shorten ipfs error message + make them "synthetic" Closes #12281 | 2 年前 | |
Makefile.mk: drop Windows support And DLL-support with it. This leaves Makefile.mk for MS-DOS and Amiga. We recommend CMake instead. With unity mode it's much faster, and about the same without. Ref: https://github.com/curl/curl/pull/12221#issuecomment-1783761806 Reviewed-by: Daniel Stenberg Closes #12224 | 2 年前 | |
curl.rc: switch out the copyright symbol for plain ASCII .. like we already do for libcurl.rc. libcurl.rc copyright symbol used to cause a "non-ascii 8-bit codepoint" warning so it was switched to ascii. Ref: https://github.com/curl/curl/commit/1ca62bb5#commitcomment-133474972 Suggested-by: Robert Southee Closes https://github.com/curl/curl/pull/12403 | 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 年前 | |
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 年前 | |
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 年前 | |
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 年前 | |
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 年前 | |
gmssl fix static-check Signed-off-by: panjie <panjie42@h-partners.com> Change-Id: Icc74d08e90fc10dc73bd4489791180aa40f24d75 | 10 个月前 | |
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 年前 | |
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 年前 | |
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 年前 | |
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 年前 | |
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 年前 | |
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 年前 | |
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 年前 | |
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 年前 | |
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 年前 | |
gmssl fix static-check Signed-off-by: panjie <panjie42@h-partners.com> Change-Id: Icc74d08e90fc10dc73bd4489791180aa40f24d75 | 10 个月前 | |
tool: make parser reject blank arguments if not supported Already in the getstr() function that clones the input argument. Closes #12620 | 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 年前 | |
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 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 年前 | |
curl: move IPFS code into src/tool_ipfs.[ch] - convert ensure_trailing into ensure_trailing_slash - strdup the URL string to own it proper - use shorter variable names - combine some expressions - simplify error handling in ipfs_gateway() - add MAX_GATEWAY_URL_LEN + proper bailout if maximum is reached - ipfs-gateway.d polish and simplification - shorten ipfs error message + make them "synthetic" Closes #12281 | 2 年前 | |
升级curl到v8.4.0 Signed-off-by: 徐杰 <xujie223@huawei.com> | 2 年前 | |
升级curl到v8.4.0 Signed-off-by: 徐杰 <xujie223@huawei.com> | 2 年前 | |
support gmssl Signed-off-by: panjie <panjie42@h-partners.com> Change-Id: Ib7adb9d5317b652da715281fee7ab22f4e41a5b8 | 10 个月前 | |
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 年前 | |
build: delete/replace 3 more clang warning pragmas - tool_msgs: delete redundant -Wformat-nonliteral suppression pragma. - whitespace formatting in mprintf.h, lib518, lib537. - lib518: fix wrong variable in sizeof(). - lib518: bump variables to rlim_t. Follow-up to e2b394106d543c4615a60795b7fdce04bd4e5090 #1469 - lib518: sync error message with lib537 Follow-up to 365322b8bcf9efb6a361473d227b70f2032212ce - lib518, lib537: replace -Wformat-nonliteral suppression pragmas by reworking test code. Follow-up to 5b286c250829e06a135a6ba998e80beb7f43a734 #12812 Follow-up to aee4ebe59161d0a5281743f96e7738ad97fe1cd4 #12803 Follow-up to 09230127589eccc7e01c1a7217787ef8e64f3328 #12540 Follow-up to 3829759bd042c03225ae862062560f568ba1a231 #12489 Reviewed-by: Daniel Stenberg Closes #12814 | 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 年前 | |
gmssl fix static-check Signed-off-by: panjie <panjie42@h-partners.com> Change-Id: Icc74d08e90fc10dc73bd4489791180aa40f24d75 | 10 个月前 | |
lib: fix comment typos Five separate ones, found by codespell Closes #12390 | 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 年前 | |
tool_getparam: replace malloc + copy by dynbuf for --data | 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 年前 | |
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 年前 | |
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 年前 | |
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 年前 | |
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 年前 | |
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 年前 | |
升级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 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 2 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 10 个月前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 10 个月前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 10 个月前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 10 个月前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 1 年前 |