From 524d0b8eb1256ddf9a68538cebb384ec1a4623b4 Mon Sep 17 00:00:00 2001 From: Mooneer Salem Date: Sun, 5 Jan 2025 18:48:15 -0800 Subject: [PATCH] If disabled, make sure we don't try calling rade_text_* with a null pointer. (#794) --- src/pipeline/RADEReceiveStep.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pipeline/RADEReceiveStep.cpp b/src/pipeline/RADEReceiveStep.cpp index 9ca515bd..59fb4c48 100644 --- a/src/pipeline/RADEReceiveStep.cpp +++ b/src/pipeline/RADEReceiveStep.cpp @@ -110,12 +110,12 @@ std::shared_ptr RADEReceiveStep::execute(std::shared_ptr inputSamp int hasEooOut = 0; float eooOut[rade_n_eoo_bits(dv_)]; nout = rade_rx(dv_, features_out, &hasEooOut, eooOut, input_buf_cplx); - if (hasEooOut) + if (hasEooOut && textPtr_ != nullptr) { // Handle RX of bits from EOO. rade_text_rx(textPtr_, eooOut, rade_n_eoo_bits(dv_) / 2); } - else + else if (!hasEooOut) { if (featuresFile_) {