mirror of
https://repo.or.cz/socat.git
synced 2025-07-12 22:53:24 +00:00
Socat address parser read over end of string when there was unbalanced quoting
This commit is contained in:
parent
8e6b341f59
commit
b62ff0c005
4 changed files with 43 additions and 1 deletions
|
@ -159,6 +159,7 @@ static int _nestlex(const char **addr,
|
|||
|
||||
if (result == 0 && dropquotes) {
|
||||
/* we strip the trailing quote */
|
||||
if (!in[0] || strncmp(in, *quotx, strlen(*quotx))) return 1;
|
||||
in += strlen(*quotx);
|
||||
} else if (result < 0) {
|
||||
*addr = in; *token = out; return result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue