mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-21 06:13:49 +00:00
Fix stack buffer overflow in writeIPInfo for IPv6 addresses
This commit is contained in:
parent
a2309124c7
commit
768a6a0bc0
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue