]> git.ipfire.org Git - thirdparty/chrony.git/commit
cmdmon: check response length before sending
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 7 Sep 2020 08:42:33 +0000 (10:42 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 9 Sep 2020 12:14:54 +0000 (14:14 +0200)
commit9c36236742f9578f51acb2f914bb5f29e0a5c717
treec56f9ec3e78160034633b3f2646de94a21c904bb
parentadebb027be5d091cf3368ec27689e7bdc288095e
cmdmon: check response length before sending

Before sending a cmdmon response, make sure it is not longer than the
request to avoid amplification in case the response/padding length is
incorrectly specified for a request.
cmdmon.c