Fix stack buffer overflow in writeIPInfo for IPv6 addresses

This commit is contained in:
Ember 2026-04-05 17:48:30 -07:00
parent a2309124c7
commit 768a6a0bc0

View file

@ -1871,7 +1871,7 @@ bool CModem::writeIPInfo(const std::string& address)
size_t length = address.size();
unsigned char buffer[25U];
unsigned char buffer[60U];
buffer[0U] = MMDVM_FRAME_START;
buffer[1U] = (unsigned char)length + 4U;