Increased maximum option length from 511 to 2047 bytes

This commit is contained in:
Gerhard Rieger 2020-11-28 20:19:47 +01:00
parent 0dccf48d69
commit 411b658939
2 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -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;