From efe01c231c69ce064bde8f9787b10f0747f219a8 Mon Sep 17 00:00:00 2001 From: Will Gauvin Date: Wed, 2 Jul 2025 07:46:14 +1000 Subject: [PATCH] fix buffer overflow error found with Celestron focuser --- drivers/focuser/celestronauxpacket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/focuser/celestronauxpacket.cpp b/drivers/focuser/celestronauxpacket.cpp index f0aec3e0d3..3139fac7b9 100644 --- a/drivers/focuser/celestronauxpacket.cpp +++ b/drivers/focuser/celestronauxpacket.cpp @@ -160,7 +160,7 @@ bool Communicator::sendPacket(int portFD, Target dest, Command cmd, buffer data) bool Communicator::readPacket(int portFD, Packet &reply) { - char rxbuf[] = {0}; + char rxbuf[1] = {0}; int nr = 0, ttyrc = 0; // look for header while(rxbuf[0] != Packet::AUX_HDR)