mirror of
https://repo.or.cz/socat.git
synced 2025-07-06 04:56:33 +00:00
Tightened syntax checks to discover bad numerical arguments
This commit is contained in:
parent
88cdeed092
commit
893d031cc2
10 changed files with 233 additions and 56 deletions
2
utils.c
2
utils.c
|
@ -160,7 +160,7 @@ char *xiosubstr(char *scratch, const char *str, size_t from, size_t len) {
|
|||
*scratch = '\0';
|
||||
return scratch0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* since version 1.7.2.4 socat supports C-99 behaviour of snprintf but still
|
||||
can handle the old glibc case with -1 return on truncation.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue