Repository navigation
Carry the ClickHouse patches from openssl-3.5.9 onto openssl-3.5.10 #22
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
Changes from all commits
c8f8bf7
7d3e482
dbd8308
c7aee19
673dfb1
5ebf903
47cfd6a
cb65872
ffe8be8
19ca75b
577c394
22e83c0
9321dc5
ae68e3a
a88c02c
337e0ec
6e7be15
ae74915
15fe39d
3a617a6
c2ddefa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,37 +0,0 @@ | ||
| [submodule "pyca.cryptography"] | ||
| path = pyca-cryptography | ||
| url = https://github.com/pyca/cryptography.git | ||
|
|
||
| [submodule "krb5"] | ||
| path = krb5 | ||
| url = https://github.com/krb5/krb5 | ||
|
|
||
| [submodule "gost-engine"] | ||
| path = gost-engine | ||
| url = https://github.com/gost-engine/engine | ||
| update = rebase | ||
| [submodule "wycheproof"] | ||
| path = wycheproof | ||
| url = https://github.com/google/wycheproof | ||
| [submodule "tlsfuzzer"] | ||
| path = tlsfuzzer | ||
| url = https://github.com/tlsfuzzer/tlsfuzzer | ||
| [submodule "python-ecdsa"] | ||
| path = python-ecdsa | ||
| url = https://github.com/tlsfuzzer/python-ecdsa | ||
| [submodule "tlslite-ng"] | ||
| path = tlslite-ng | ||
| url = https://github.com/tlsfuzzer/tlslite-ng | ||
| [submodule "oqs-provider"] | ||
| path = oqs-provider | ||
| url = https://github.com/open-quantum-safe/oqs-provider.git | ||
| [submodule "cloudflare-quiche"] | ||
| path = cloudflare-quiche | ||
| url = https://github.com/cloudflare/quiche | ||
| [submodule "fuzz/corpora"] | ||
| path = fuzz/corpora | ||
| url = https://github.com/openssl/fuzz-corpora | ||
| branch = main | ||
| [submodule "pkcs11-provider"] | ||
| path = pkcs11-provider | ||
| url = https://github.com/latchset/pkcs11-provider.git | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,6 +12,12 @@ | |
| #include <openssl/rand.h> | ||
| #include "internal/refcount.h" | ||
|
|
||
| #if defined(__has_feature) | ||
| # if __has_feature(address_sanitizer) | ||
| #include <sanitizer/lsan_interface.h> | ||
| # endif | ||
| #endif | ||
|
|
||
| CRYPTO_RWLOCK *global_engine_lock; | ||
|
|
||
| CRYPTO_ONCE engine_lock_init = CRYPTO_ONCE_STATIC_INIT; | ||
|
|
@@ -33,8 +39,18 @@ ENGINE *ENGINE_new(void) | |
| ERR_raise(ERR_LIB_ENGINE, ERR_R_CRYPTO_LIB); | ||
| return 0; | ||
| } | ||
| #if defined(__has_feature) | ||
| # if __has_feature(address_sanitizer) | ||
| __lsan_disable(); | ||
| # endif | ||
| #endif | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. LSAN left disabled after allocation failureLow Severity
Reviewed by Cursor Bugbot for commit c2ddefa. Configure here. |
||
| if ((ret = OPENSSL_zalloc(sizeof(*ret))) == NULL) | ||
| return NULL; | ||
| #if defined(__has_feature) | ||
| # if __has_feature(address_sanitizer) | ||
| __lsan_enable(); | ||
| # endif | ||
| #endif | ||
| if (!CRYPTO_NEW_REF(&ret->struct_ref, 1)) { | ||
| OPENSSL_free(ret); | ||
| return NULL; | ||
|
|
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CPU setup trigger skipped on GCC
Low Severity
trigger = 1is compiled only when__has_featureexists and MemorySanitizer is off. Compilers without__has_feature(notably GCC) never settrigger, soOPENSSL_cpuid_setupruns again from both the.initsnippet andossl_init_baseinstead of returning early. The MSan workaround was meant to skip the store only under MSan, not on every non-Clang toolchain.Reviewed by Cursor Bugbot for commit c2ddefa. Configure here.