chiark / gitweb /
adns_processwriteable: assert that write did not write more than we asked
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 1 Dec 2016 02:14:55 +0000 (02:14 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 26 May 2020 19:23:40 +0000 (20:23 +0100)
commit1b7cf52f87fe744219d2921aa4b95012171f0467
tree22856a62ebc1cdbfa9386ff31717bd3d22e3e031
parentf14a3d1bd8501b7a1055f5adb53731da96ef0465
adns_processwriteable: assert that write did not write more than we asked

This is better than proceeding to make tcpsend.used negative.

Should this ever happens, which it doesn't except under AFL, because
of a bug in hfuzzraw.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/event.c