]> git.gsnw.org Git - fping.git/commit
handle long input lines when reading from file
authorErik Auerswald <auerswal@unix-ag.uni-kl.de>
Sun, 26 Jan 2025 19:48:25 +0000 (20:48 +0100)
committerErik Auerswald <auerswal@unix-ag.uni-kl.de>
Sat, 8 Mar 2025 15:16:07 +0000 (16:16 +0100)
commita237394ca113c85879e04be3a6b8816c557c5d51
treefac5f4d06591afa0d73ed72912d08201ba5962b3
parentc362b0041e94080d26f668209ab60bc7f35bf05a
handle long input lines when reading from file

This addresses GitHub isse #377.

Before, input lines longer than the static buffer used to read
data would be handled as if each buffer part were one line.
This could result in splitting input target names into multiple
different target names.

Since the static buffer was significantly smaller then the maximum
length of DNS names (just short of 255 one octet characters),
valid long DNS names could not be read as targets via file.

This commit fixes the splitting of long lines, and also increases
the maximum length of target names to 255 one octet characters.

The additional line parsing code is kept similar to the existing
code and attempts to keep all intended and/or useful features to
minimize the risk of regressions.
CHANGELOG.md
ci/test-issue-377.pl [new file with mode: 0755]
doc/fping.pod
src/fping.c