]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-test: fuzzer - Fix FD-based fuzzing to only shutdown input FD upon end of data.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Mon, 12 Apr 2021 19:14:07 +0000 (21:14 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Thu, 15 Apr 2021 06:59:59 +0000 (06:59 +0000)
commit99b3f881f87e483aca6b8bd1a58134d8d25615cc
tree1056cff821f2b76f50a5a1417aa8c3a3ca69c8d2
parentd14c6b5e529a8d63188b2a4d7e88ed3459e7ece6
lib-test: fuzzer - Fix FD-based fuzzing to only shutdown input FD upon end of data.

Before, it closed the whole socket once the data input ended. This for
example caused the SMTP server fuzzer to end before all replies were sent. This
shortened the test and could have hidden bugs that occur later in the SMTP
transaction.
src/lib-test/fuzzer.c
src/lib-test/fuzzer.h