]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Disable check in mss.c to speed up fuzzing
authorGuido Vranken <guidovranken@gmail.com>
Fri, 23 Jun 2017 15:34:59 +0000 (17:34 +0200)
committerGuido Vranken <guidovranken@gmail.com>
Fri, 23 Jun 2017 15:34:59 +0000 (17:34 +0200)
src/openvpn/mss.c

index c36e004648ec998aa803dfed1e236d3a0cbe7dcf..414c1d870b4aba2654afbf8b32acbe283323140b 100644 (file)
@@ -59,7 +59,9 @@ mss_fixup_ipv4(struct buffer *buf, int maxmss)
     hlen = OPENVPN_IPH_GET_LEN(pip->version_len);
 
     if (pip->protocol == OPENVPN_IPPROTO_TCP
+/* This is difficult for the fuzzer to figure out
         && ntohs(pip->tot_len) == BLEN(buf)
+*/
         && (ntohs(pip->frag_off) & OPENVPN_IP_OFFMASK) == 0
         && hlen <= BLEN(buf)
         && BLEN(buf) - hlen