From 96a20ea8cd3d3df80ee8ce3d56e0861f45a5a2c3 Mon Sep 17 00:00:00 2001 From: M Kelly Date: Wed, 15 Jan 2025 11:37:50 -0500 Subject: [PATCH] HPCC-33240 Array out of bounds error when compiling in Release mode Signed-off-by: M Kelly --- roxie/udplib/udptrr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roxie/udplib/udptrr.cpp b/roxie/udplib/udptrr.cpp index 759e32cd4c6..43c26d0c695 100644 --- a/roxie/udplib/udptrr.cpp +++ b/roxie/udplib/udptrr.cpp @@ -391,7 +391,7 @@ enum class ReceiveState { granted, // at least one permit granted and NO pending request, waiting for data to be sent max }; -constexpr const char * receiveStateNameText[(unsigned)ReceiveState::max] = { "idle", "requested", "granted" }; +constexpr const char * receiveStateNameText[(unsigned)ReceiveState::max+1] = { "idle", "requested", "granted", "unknown" }; const char * receiveStateName(ReceiveState idx) { return receiveStateNameText[(unsigned)idx]; }