mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-01 19:35:52 +02:00
Merge bitcoin/bitcoin#31522: ci: Enable DEBUG=1 for one GCC-12+ build to catch 117966 regressions
fa8ade300frefactor: Avoid GCC false positive error (MarcoFalke)fa40807fa8ci: Enable DEBUG=1 for one GCC-12+ build to catch 117966 regressions (MarcoFalke) Pull request description: It is possible that someone accidentally removes the workaround infa9e0489f5, or more likely that someone accidentally adds new code without the workaround. Avoid this by adding a temporary CI check. This can be tested by reverting the workaround and observing a failure. ACKs for top commit: hebasto: ACKfa8ade300f, I've tested locally on Ubuntu 24.04. Tree-SHA512: 7ee1538fd5304a5ab91ac8c7619a573548d7e0345592a1e9d38b3b73729e09e7c77a9ee703d64cf02a8218de3148376d7836e294abb939aa7533034ba36dfb6c
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2020-2021 The Bitcoin Core developers
|
||||
// Copyright (c) 2020-present The Bitcoin Core developers
|
||||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include <cassert>
|
||||
#include <cmath>
|
||||
#include <limits>
|
||||
#include <optional>
|
||||
|
||||
FUZZ_TARGET(float)
|
||||
{
|
||||
@@ -18,7 +19,7 @@ FUZZ_TARGET(float)
|
||||
|
||||
{
|
||||
const double d{[&] {
|
||||
double tmp;
|
||||
std::optional<double> tmp;
|
||||
CallOneOf(
|
||||
fuzzed_data_provider,
|
||||
// an actual number
|
||||
@@ -42,7 +43,7 @@ FUZZ_TARGET(float)
|
||||
}); },
|
||||
// Anything from raw memory (also checks that DecodeDouble doesn't crash on any input)
|
||||
[&] { tmp = DecodeDouble(fuzzed_data_provider.ConsumeIntegral<uint64_t>()); });
|
||||
return tmp;
|
||||
return *tmp;
|
||||
}()};
|
||||
(void)memusage::DynamicUsage(d);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user