mirror of
https://github.com/curl/curl.git
synced 2026-08-26 06:23:32 +03:00
tool_parsecfg: make get_line handle lines ending on the buffer boundary
Add test 743 to verify. Fixes #17030 Reported-by: Marius Kleidl Closes #17031
This commit is contained in:
parent
d364f1347f
commit
9f8bdd0eae
3 changed files with 63 additions and 1 deletions
|
|
@ -312,6 +312,8 @@ static bool get_line(FILE *input, struct dynbuf *buf, bool *error)
|
|||
else if(feof(input))
|
||||
return TRUE; /* all good */
|
||||
}
|
||||
else if(curlx_dyn_len(buf))
|
||||
return TRUE; /* all good */
|
||||
else
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue