mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 21:42:39 +00:00
d99851bcbe
By some reason cmake rules for googletest sets GTEST_HAS_POSIX_RE=0 (Compatibilty? But which platform that does support ClickHouse does not have it?) But everything will be okay, if these macros was set PUBLIC (i.e. for compiling googletest library itself and it's users), however it was added as INTERFACE only (so library itself does not know about GTEST_HAS_POSIX_RE=0), and this leads to UB, here ASan report (while I was trying to use ASSERT_EXIT()). <details> <summary>ASan report</summary> [ RUN ] Common.LSan ================================================================= ==7566==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6030005b2388 at pc 0x00000d00924c bp 0x7ffcd3b7cfb0 sp 0x7ffcd3b7c770 WRITE of size 64 at 0x6030005b2388 thread T0 0 0xd00924b in regcomp (/bld/src/unit_tests_dbms+0xd00924b) (BuildId: 40d3fa83125f9047) 1 0x29ca243b in testing::internal::RE::Init(char const*) /bld/./contrib/googletest/googletest/src/gtest-port.cc:750:15 2 0xd4d92b3 in testing::internal::RE::RE(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) /bld/./contrib/googletest/googletest/include/gtest/internal/gtest-port.h:896:36 3 0xd4d92b3 in testing::PolymorphicMatcher<testing::internal::MatchesRegexMatcher> testing::ContainsRegex<char const*>(char const* const&) /bld/./contrib/googletest/googletest/include/gtest/gtest-matchers.h:868:28 4 0xd4d813a in testing::internal::MakeDeathTestMatcher(char const*) /bld/./contrib/googletest/googletest/include/gtest/internal/gtest-death-test-internal.h:173:10 5 0xd4d813a in Common_LSan_Test::TestBody() /bld/./src/Common/tests/gtest_lsan.cpp:11:5 0x6030005b2388 is located 0 bytes to the right of 24-byte region [0x6030005b2370,0x6030005b2388) allocated by thread T0 here: 0 0xd066fbd in operator new(unsigned long) (/bld/src/unit_tests_dbms+0xd066fbd) (BuildId: 40d3fa83125f9047) 1 0xd4d913d in testing::PolymorphicMatcher<testing::internal::MatchesRegexMatcher> testing::ContainsRegex<char const*>(char const* const&) /bld/./contrib/googletest/googletest/include/gtest/gtest-matchers.h:868:24 2 0xd4d813a in testing::internal::MakeDeathTestMatcher(char const*) /bld/./contrib/googletest/googletest/include/gtest/internal/gtest-death-test-internal.h:173:10 3 0xd4d813a in Common_LSan_Test::TestBody() /bld/./src/Common/tests/gtest_lsan.cpp:11:5 </details> |
||
---|---|---|
.. | ||
abseil-cpp@215105818d | ||
abseil-cpp-cmake | ||
AMQP-CPP@1a6c51f4ac | ||
amqpcpp-cmake | ||
arrow@efdcd015cf | ||
arrow-cmake | ||
avro@e43c46e87f | ||
avro-cmake | ||
aws@00b0360454 | ||
aws-c-common@736a82d169 | ||
aws-c-event-stream@3bc33662f9 | ||
aws-checksums@519d6d9093 | ||
aws-s3-cmake | ||
azure@ac4b763d4c | ||
azure-cmake | ||
base64@9499e0c494 | ||
base64-cmake | ||
base-x@a85f98fb4e | ||
base-x-cmake | ||
boost@c0807e83f2 | ||
boost-cmake | ||
boringssl@c1e01a441d | ||
boringssl-cmake | ||
brotli@63be8a9940 | ||
brotli-cmake | ||
bzip2@bf905ea225 | ||
bzip2-cmake | ||
capnproto@c8189ec3c2 | ||
capnproto-cmake | ||
cassandra@f4a31e92a2 | ||
cassandra-cmake | ||
cctz@8c71d74bdf | ||
cctz-cmake | ||
cityhash102 | ||
cld2@bc6d493a2f | ||
cld2-cmake | ||
consistent-hashing | ||
cppkafka@5a119f689f | ||
cppkafka-cmake | ||
croaring@2c867e9f9c | ||
croaring-cmake | ||
curl@462196e6b4 | ||
curl-cmake | ||
cyrus-sasl@e6466edfd6 | ||
cyrus-sasl-cmake | ||
datasketches-cpp@7d73d7610d | ||
datasketches-cpp-cmake | ||
double-conversion@cf2f0f3d54 | ||
double-conversion-cmake | ||
dragonbox@923705af6f | ||
dragonbox-cmake | ||
fast_float@7eae925b51 | ||
fast_float-cmake | ||
fastops@1460583af7 | ||
fastops-cmake | ||
flatbuffers@eb3f827948 | ||
fmtlib@b6f4ceaed0 | ||
fmtlib-cmake | ||
googletest@e7e591764b | ||
googletest-cmake | ||
grpc@5e23e96c0c | ||
grpc-cmake | ||
h3@c7f46cfd71 | ||
h3-cmake | ||
hashidsxx@783f6911cc | ||
hashidsxx-cmake | ||
hive-metastore@809a77d435 | ||
hive-metastore-cmake | ||
icu@a56dde820d | ||
icu-cmake | ||
icudata@72d9a4a7fe | ||
jemalloc@41a859ef73 | ||
jemalloc-cmake | ||
krb5@5149dea4e2 | ||
krb5-cmake | ||
lemmagen-c@59537bdcf5 | ||
lemmagen-c-cmake | ||
libcpuid@8db3b8d2d3 | ||
libcpuid-cmake | ||
libcxx@172b2ae074 | ||
libcxx-cmake | ||
libcxxabi@6eb7cc7a7b | ||
libcxxabi-cmake | ||
libdivide | ||
libfarmhash | ||
libgsasl@383ee28e82 | ||
libgsasl-cmake | ||
libhdfs3@9194af4458 | ||
libhdfs3-cmake | ||
libmetrohash | ||
libpq@e071ea570f | ||
libpq-cmake | ||
libpqxx@a4e8348392 | ||
libpqxx-cmake | ||
libprotobuf-mutator@a304ec48dc | ||
libprotobuf-mutator-cmake | ||
librdkafka@6062e711a9 | ||
librdkafka-cmake | ||
libstemmer_c@c753054304 | ||
libstemmer-c-cmake | ||
libunwind@5022f30f3e | ||
libunwind-cmake | ||
libuv@95081e7c16 | ||
libuv-cmake | ||
libxml2@7846b0a677 | ||
libxml2-cmake | ||
llvm@20607e6172 | ||
llvm-cmake | ||
lz4@4c9431e9af | ||
lz4-cmake | ||
magic_enum@38f86e4d09 | ||
magic-enum-cmake | ||
mariadb-connector-c@e39608998f | ||
mariadb-connector-c-cmake | ||
miniselect@be0af6bd0b | ||
miniselect-cmake | ||
minizip-ng@f3d400e999 | ||
minizip-ng-cmake | ||
msgpack-c@46684265d5 | ||
msgpack-c-cmake | ||
murmurhash | ||
nanodbc@df52a1232d | ||
nanodbc-cmake | ||
nats-io@6b2227f367 | ||
nats-io-cmake | ||
nlp-data@5591f91f5e | ||
nlp-data-cmake | ||
NuRaft@1334b9ae72 | ||
nuraft-cmake | ||
openldap@0208811b60 | ||
openldap-cmake | ||
orc@f9a393ed24 | ||
pdqsort | ||
pdqsort-cmake | ||
poco@9fec8e11db | ||
poco-cmake | ||
protobuf@6bb70196c5 | ||
protobuf-cmake | ||
rapidjson@c4ef90ccdb | ||
rapidjson-cmake | ||
re2@13ebb377c6 | ||
re2-cmake | ||
replxx@3fd0e3c936 | ||
replxx-cmake | ||
rocksdb@e7c2b2f7bc | ||
rocksdb-cmake | ||
s2geometry@471fe9dc93 | ||
s2geometry-cmake | ||
sentry-native@f431047ac8 | ||
sentry-native-cmake | ||
simdjson@1075e8609c | ||
simdjson-cmake | ||
snappy@fb057edfed | ||
snappy-cmake | ||
sparsehash-c11@cf0bffaa45 | ||
sparsehash-c11-cmake | ||
sqlite-amalgamation@9818baa5d0 | ||
sqlite-cmake | ||
sysroot@e9fb375d0a | ||
thrift@2a93df80f2 | ||
thrift-cmake | ||
unixodbc@a2cd5395e8 | ||
unixodbc-cmake | ||
vectorscan@73695e419c | ||
vectorscan-cmake | ||
wordnet-blast@1d16ac2803 | ||
wordnet-blast-cmake | ||
wyhash@991aa3dab6 | ||
wyhash-cmake | ||
xz@869b9d1b4e | ||
xz-cmake | ||
yaml-cpp@0c86adac6d | ||
yaml-cpp-cmake | ||
zlib-ng@bffad6f6fe | ||
zlib-ng-cmake | ||
zstd@b944db0c45 | ||
zstd-cmake | ||
CMakeLists.txt |