mirror of
https://github.com/open-simh/simh.git
synced 2026-05-05 07:33:56 +00:00
H316: Avoid potential buffer overflow for UDP connect string
This commit is contained in:
@@ -270,7 +270,7 @@ t_stat udp_create (DEVICE *dptr, const char *premote, int32 *pln)
|
|||||||
// which is a handle used to identify this connection to all future udp_xyz()
|
// which is a handle used to identify this connection to all future udp_xyz()
|
||||||
// calls.
|
// calls.
|
||||||
t_stat ret;
|
t_stat ret;
|
||||||
char linkinfo[128];
|
char linkinfo[256];
|
||||||
int32 link = udp_find_free_link();
|
int32 link = udp_find_free_link();
|
||||||
if (link < 0) return SCPE_MEM;
|
if (link < 0) return SCPE_MEM;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user