Skip to content
  • Thomas Markwalder's avatar
    [#730,!2] Corrected assertion failure on malformed hostname from kea-dhcp4 · 9260b6d9
    Thomas Markwalder authored
    src/lib/exceptions/isc_assert.h
        New file that defines isc_assert_throw()
    
    src/lib/exceptions/Makefile.am
        added isc_asssert.h
    
    src/lib/exceptions/tests/exceptions_unittest.cc
        TEST(IscThrowAssert, checkMessage) - new test
    
    src/lib/dns/labelsequence.cc
    src/lib/dns/name.cc
        Replaced assert() calls with isc_throw_assert() calls
    
    src/lib/dns/tests/name_unittest.cc
        TEST_F(NameTest, unexpectedParseError) - new unit test
        for hostname option content based on fuzz test failure
    
    src/lib/dhcp_ddns/ncr_msg.cc
        Removed unnecessary include of dns/name.h
    
    src/bin/dhcp4/dhcp4_srv.cc
        Dhcpv4Srv::processHostnameOption() - added try catch
        around OptionDataTypeUtil::getLabelCount() call
    
    src/bin/dhcp4/dhcp4_messages.*
        added new log message DHCP4_CLIENT_HOSTNAME_MALFORMED
    
    src/bin/dhcp4/tests/fqdn_unittest.cc
        TEST_F(NameDhcpv4SrvTest, serverUpdateMalformedHostname) -
        renamed test and augmented it to include the packet of death
        produced by fuzz testing.
    9260b6d9