mirror of
https://repo.or.cz/socat.git
synced 2024-12-22 07:22:34 +00:00
Increased maximum option length from 511 to 2047 bytes
This commit is contained in:
parent
0dccf48d69
commit
411b658939
2 changed files with 5 additions and 1 deletions
4
CHANGES
4
CHANGES
|
@ -39,6 +39,10 @@ Corrections:
|
|||
Tests: UNIX_SENDTO_UNLINK UNIX_CONNECT_UNLINK
|
||||
Thanks to Nico Williams for reporting this major issue.
|
||||
|
||||
Length of single address options was limited to 511 bytes. This value
|
||||
is now increased to 2047 bytes.
|
||||
Change suggested by Mario Camou.
|
||||
|
||||
Porting:
|
||||
In gcc version 10 the default changed from -fcommon to -fno-common.
|
||||
Consequently, linking filan and procan failed with error
|
||||
|
|
|
@ -1821,7 +1821,7 @@ int parseopts_table(const char **a, unsigned int groups, struct opt **opts,
|
|||
unsigned long ulongval;
|
||||
long slongval;
|
||||
long long slonglongval;
|
||||
char token[512], *tokp; size_t len;
|
||||
char token[2048], *tokp; size_t len;
|
||||
int parsres;
|
||||
int result;
|
||||
char optbuf[256]; size_t optlen;
|
||||
|
|
Loading…
Reference in a new issue