Update CI dependencies Updating libc++ requires building it in C++26 mode, removing two unused std::vector variables flagged by libc++'s new warn_unused attribute, and updating __config_site: * Set _LIBCPP_INSTRUMENTED_WITH_ASAN only under __has_feature(address_sanitizer), as non-ASan builds now error if it is enabled (https://github.com/llvm/llvm-project/pull/168955). * Define _LIBCPP_ABI_NAMESPACE and _LIBCPP_ABI_NAMESPACE_LEN so __asm__ symbol aliases expand properly (https://github.com/llvm/llvm-project/pull/234575). * Define _LIBCPP_HAS_THREAD_API_C11 to match __config_site.in (https://github.com/llvm/llvm-project/pull/188414). Updating bindgen also requires manual Clone/Copy impls on StackIterator in bssl-tls because bindgen no longer derives them on opaque C structs. Note: tools_clang_revision and tools_rust_revision are updated to the last toolchain revision before Chromium's Oct 19 roll rather than HEAD, because Chromium's current Clang snapshot includes https://github.com/llvm/llvm-project/pull/227722 without its fix in https://github.com/llvm/llvm-project/pull/238025, breaking win_arm64_compile. Change-Id: Id61d03fa8fc543ee801cc2f1871dcb036a6a6964 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/106328 Commit-Queue: Lily Chen <chlily@google.com> Reviewed-by: David Benjamin <davidben@google.com>
diff --git a/CMakeLists.txt b/CMakeLists.txt index 191d595..d0bff28 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -353,8 +353,8 @@ target_include_directories(libcxx PRIVATE util/bot/llvm-libc) set_target_properties( libcxx libcxxabi PROPERTIES - # libc++ and libc++abi must be built in C++23 mode. - CXX_STANDARD 23 + # libc++ and libc++abi must be built in C++26 mode. + CXX_STANDARD 26 CXX_STANDARD_REQUIRED TRUE ) # libc++abi depends on libc++ internal headers.
diff --git a/crypto/cipher/aead_test.cc b/crypto/cipher/aead_test.cc index 0a6831a..5a36354 100644 --- a/crypto/cipher/aead_test.cc +++ b/crypto/cipher/aead_test.cc
@@ -1084,10 +1084,6 @@ "123456testing123456testing123456testing123456testing123456testing123456t" "esting123456testing123456testing123456testing123456testing123456testing1" "23456testing123456testing123456testing12345"; - const std::vector<size_t> offsets = { - 0, 1, 2, 8, 15, 16, 17, 31, 32, 33, 63, - 64, 65, 95, 96, 97, 127, 128, 129, 255, 256, 257, - }; std::vector<uint8_t> nonce(nonce_len, 'b'); std::vector<uint8_t> valid_encryption(sizeof(kPlaintext) + max_overhead);
diff --git a/go.mod b/go.mod index 9d5b0d5..e55bdea 100644 --- a/go.mod +++ b/go.mod
@@ -1,6 +1,6 @@ module boringssl.googlesource.com/boringssl.git -go 1.27.0 +go 1.27.4 require ( cloud.google.com/go/storage v1.70.0
diff --git a/pki/trust_store_collection_unittest.cc b/pki/trust_store_collection_unittest.cc index 24f9810..7f816dc 100644 --- a/pki/trust_store_collection_unittest.cc +++ b/pki/trust_store_collection_unittest.cc
@@ -168,8 +168,6 @@ // Collection contains two stores. The certificate is marked as trusted in one, // but distrusted in the other. TEST_F(TrustStoreCollectionTest, DistrustTakesPriority) { - ParsedCertificateList issuers; - TrustStoreCollection collection; TrustStoreInMemory in_memory1; TrustStoreInMemory in_memory2;
diff --git a/rust/bssl-tls/src/ffi.rs b/rust/bssl-tls/src/ffi.rs index 5ca3bd0..25cc3b9 100644 --- a/rust/bssl-tls/src/ffi.rs +++ b/rust/bssl-tls/src/ffi.rs
@@ -346,7 +346,6 @@ } } -#[derive(Clone, Copy)] pub(crate) struct StackIterator<'a, T: StackElement> { sk: *const T::Stack, len: usize, @@ -354,6 +353,16 @@ _p: PhantomData<&'a fn() -> T>, } +// Implement manually instead of deriving so `T` does not need `Clone` or `Copy` +// (bindgen does not derive them for opaque C structs). +impl<T: StackElement> Clone for StackIterator<'_, T> { + fn clone(&self) -> Self { + *self + } +} + +impl<T: StackElement> Copy for StackIterator<'_, T> {} + impl<'a, T: StackElement> StackIterator<'a, T> { /// Safety: caller must ensure that `sk` outlives `'a`. pub(crate) unsafe fn new(sk: *const T::Stack) -> Self {
diff --git a/util/bot/DEPS b/util/bot/DEPS index c201370..259127a 100644 --- a/util/bot/DEPS +++ b/util/bot/DEPS
@@ -36,14 +36,15 @@ # wait a few hours for the new package to be built. 'android_ndk_version': 'version:3@r29.chromium.1', # infra/3pp/tools/cmake/linux-amd64 - 'cmake_version': 'version:3@3.31.11.chromium.8', + 'cmake_version': 'version:3@3.31.12.chromium.8', # infra/3pp/tools/go/linux-amd64 # Keep this in sync with the go directive in go.mod, and run `go mod tidy` # after updating. - 'go_version': 'version:3@1.27.0', + 'go_version': 'version:3@1.27.4', # infra/3pp/tools/perl/windows-amd64 - 'perl_version': 'version:3@5.42.0.1', + 'perl_version': 'version:3@5.42.2.1', # infra/3pp/tools/qemu_static/linux-amd64 + # TODO(crbug.com/588488394): Remove this. It's no longer needed. 'qemu_static_version': 'version:3@10.0.8+ds-0+deb13u1+b1', # chrome_internal/third_party/sdk/windows, but if an update switches this to a # new major VS release, keep some bots at the older version. @@ -64,19 +65,19 @@ # Update the following from # https://chromium.googlesource.com/chromium/src/+/main/DEPS 'android_sdk_platform-tools_version': 'qTD9QdBlBf3dyHsN1lJ0RH6AhHxR42Hmg2Ih-Vj4zIEC', - 'libfuzzer_revision': 'bea408a6e01f0f7e6c82a43121fe3af4506c932e', + 'libfuzzer_revision': 'c7ea90fb61105752fa78e257e77a7c5d62fff7d3', # Updating libc++ may require updating util/bot/libcxx-config/__config_site # and the USE_CUSTOM_LIBCXX block in CMakeLists.txt. Test locally with # checkout_libcxx=True, -DUSE_CUSTOM_LIBCXX=1 (e.g. with -DMSAN=1 or # -DASAN=1), and the clang binary in util/bot/llvm-build/bin. - 'libcxx_revision': '7ab65651aed6802d2599dcb7a73b1f82d5179d05', - 'libcxxabi_revision': '8f11bb1d4438d0239d0dfc1bd9456a9f31629dda', - 'llvm_libc_revision': '2a826f2fda3cf8d75b47cbc3bb1d9b244f13a6ab', + 'libcxx_revision': '64f64c14ae2f4653af875bd172462a4c5e6afe18', + 'libcxxabi_revision': '8e42446dd61148a66220123297964bd3856e7cf9', + 'llvm_libc_revision': '7840ec9fbb6be122103494a8f763e45775ef6353', 'ninja_version': 'version:3@1.12.1.chromium.4', # Update to the latest revision of # https://chromium.googlesource.com/chromium/src/tools/clang - 'tools_clang_revision': 'e4816757c45a072f08279139108a0a937bbeb239', + 'tools_clang_revision': '0f34e74266057cf959670d19120cbb83850c938f', # Update to the latest revision of # https://chromium.googlesource.com/chromium/src/tools/rust @@ -88,7 +89,7 @@ # running ../util/bot/rust-toolchain/bin/cargo test --all-targets # --all-features (with RUSTC, RUSTDOC, and BORINGSSL_BUILD_DIR set # accordingly). - 'tools_rust_revision': '285104ac97c055afdc632b9c02af223ef738ad87', + 'tools_rust_revision': '9ec0f3001f8d689e57121e7bdddca35ba285a8c5', } deps = {
diff --git a/util/bot/libcxx-config/__config_site b/util/bot/libcxx-config/__config_site index 4031da9..acd4011 100644 --- a/util/bot/libcxx-config/__config_site +++ b/util/bot/libcxx-config/__config_site
@@ -22,11 +22,19 @@ // Randomize order where unspecified (e.g. equal-comparing items in std::sort). #define _LIBCPP_DEBUG_RANDOMIZE_UNSPECIFIED_STABILITY -// libc++ headers disable std::string ASan annotations if this is not defined. -// This is to avoid false positives when libc++'s runtime components are -// uninstrumented. When building our custom libc++, libc++ will be as -// instrumented as the caller, so we can safely enable this. +// libc++ headers disable std::string ASan annotations if this is not defined, +// to avoid false positives when libc++'s runtime components are uninstrumented, +// and error if _LIBCPP_INSTRUMENTED_WITH_ASAN is set when compiling without +// ASan. When building our custom libc++, libc++ will be as instrumented as the +// caller, so match the caller's ASan setting. +#if __has_feature(address_sanitizer) #define _LIBCPP_INSTRUMENTED_WITH_ASAN 1 +#else +#define _LIBCPP_INSTRUMENTED_WITH_ASAN 0 +#endif + +#define _LIBCPP_ABI_NAMESPACE __bssl +#define _LIBCPP_ABI_NAMESPACE_LEN 6 #define _LIBCPP_HAS_FILESYSTEM 1 #define _LIBCPP_HAS_LOCALIZATION 1 @@ -41,10 +49,12 @@ #define _LIBCPP_HAS_THREAD_API_PTHREAD 0 #define _LIBCPP_HAS_THREAD_API_EXTERNAL 0 #define _LIBCPP_HAS_THREAD_API_WIN32 1 +#define _LIBCPP_HAS_THREAD_API_C11 0 #else #define _LIBCPP_HAS_THREAD_API_PTHREAD 1 #define _LIBCPP_HAS_THREAD_API_EXTERNAL 0 #define _LIBCPP_HAS_THREAD_API_WIN32 0 +#define _LIBCPP_HAS_THREAD_API_C11 0 #endif #endif // BORINGSSL_LIBCXX_CONFIG_SITE_