From bba239a58a550a3bd48bfe52f9ab11d47d8bbf95 Mon Sep 17 00:00:00 2001 From: iaaby <34074429+iaaby@users.noreply.github.com> Date: Thu, 20 Nov 2025 22:02:02 +0100 Subject: [PATCH] Fix possible infinite loop --- src/sml.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sml.cpp b/src/sml.cpp index 17dbd63..540eedd 100644 --- a/src/sml.cpp +++ b/src/sml.cpp @@ -367,6 +367,7 @@ void smlOBISByUnit(long long int &val, signed char &scaler, sml_units_t unit) // left shift received bytes to 64 bit signed integer val = (val << 8) | listBuffer[i + y]; } + return; } i += size; }