Disable RTSan for RADE text handling.
parent
0abec0a15a
commit
321a7e4d1d
|
@ -154,8 +154,21 @@ std::shared_ptr<short> RADEReceiveStep::execute(std::shared_ptr<short> inputSamp
|
||||||
|
|
||||||
if (hasEooOut && textPtr_ != nullptr)
|
if (hasEooOut && textPtr_ != nullptr)
|
||||||
{
|
{
|
||||||
|
#if defined(__clang__)
|
||||||
|
#if defined(__has_feature) && __has_feature(realtime_sanitizer)
|
||||||
|
__rtsan_disable();
|
||||||
|
#endif // defined(__has_feature) && __has_feature(realtime_sanitizer)
|
||||||
|
#endif // defined(__clang__)
|
||||||
|
|
||||||
// Handle RX of bits from EOO.
|
// Handle RX of bits from EOO.
|
||||||
rade_text_rx(textPtr_, eooOut_, rade_n_eoo_bits(dv_) / 2);
|
rade_text_rx(textPtr_, eooOut_, rade_n_eoo_bits(dv_) / 2);
|
||||||
|
|
||||||
|
#if defined(__clang__)
|
||||||
|
#if defined(__has_feature) && __has_feature(realtime_sanitizer)
|
||||||
|
__rtsan_enable();
|
||||||
|
#endif // defined(__has_feature) && __has_feature(realtime_sanitizer)
|
||||||
|
#endif // defined(__clang__)
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (!hasEooOut)
|
else if (!hasEooOut)
|
||||||
{
|
{
|
||||||
|
@ -222,4 +235,4 @@ void RADEReceiveStep::reset()
|
||||||
codec2_fifo_read(outputSampleFifo_, &buf, 1);
|
codec2_fifo_read(outputSampleFifo_, &buf, 1);
|
||||||
}
|
}
|
||||||
pendingFeatures_.clear();
|
pendingFeatures_.clear();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue