Fix undefined behaviors reported by UBSan
We have some undefined behaviors reported under clang compiler.
You can check the current status at https://jenkins.aws.isc.org/job/kea-dev/job/jenkins-tests-report/Jenkins_20Tests_20Report/ on the ut-ubsan
tab.
Here are most of them from https://jenkins.aws.isc.org/job/kea-dev/job/ut-ubsan/508/.
[2023-04-05T17:09:01.507Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message.cc:406:9 in
[2023-04-05T17:09:01.507Z] message.cc:406:23: runtime error: load of value 65536, which is not a valid value for type 'const isc::dns::Message::HeaderFlag'
[2023-04-05T17:09:01.507Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message.cc:406:23 in
[2023-04-05T17:09:01.507Z] message.cc:407:9: runtime error: load of value 65536, which is not a valid value for type 'const isc::dns::Message::HeaderFlag'
--
[2023-04-05T17:09:01.507Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message_unittest.cc:283:5 in
[2023-04-05T17:09:01.507Z] message.cc:492:26: runtime error: load of value 4, which is not a valid value for type 'const isc::dns::Message::Section'
[2023-04-05T17:09:01.507Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message.cc:492:26 in
[2023-04-05T17:09:01.507Z] message.cc:493:9: runtime error: load of value 4, which is not a valid value for type 'const isc::dns::Message::Section'
--
[2023-04-05T17:09:01.507Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message_unittest.cc:310:5 in
[2023-04-05T17:09:01.507Z] message.cc:508:26: runtime error: load of value 4, which is not a valid value for type 'const isc::dns::Message::Section'
[2023-04-05T17:09:01.507Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message.cc:508:26 in
[2023-04-05T17:09:01.507Z] message.cc:509:9: runtime error: load of value 4, which is not a valid value for type 'const isc::dns::Message::Section'
--
[2023-04-05T17:09:01.507Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message_unittest.cc:336:5 in
[2023-04-05T17:09:01.507Z] message.cc:521:26: runtime error: load of value 4, which is not a valid value for type 'const isc::dns::Message::Section'
[2023-04-05T17:09:01.507Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message.cc:521:26 in
[2023-04-05T17:09:01.507Z] message.cc:522:9: runtime error: load of value 4, which is not a valid value for type 'const isc::dns::Message::Section'
[2023-04-05T17:09:01.507Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message.cc:522:9 in
[2023-04-05T17:09:01.507Z] message_unittest.cc:359:5: runtime error: load of value 4, which is not a valid value for type 'const Message::Section'
[2023-04-05T17:09:01.507Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message_unittest.cc:359:5 in
[2023-04-05T17:09:01.507Z] message.cc:538:22: runtime error: load of value 4, which is not a valid value for type 'const isc::dns::Message::Section'
--
[2023-04-05T17:09:01.507Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message_unittest.cc:461:5 in
[2023-04-05T17:09:01.507Z] message.cc:573:26: runtime error: load of value 4, which is not a valid value for type 'const isc::dns::Message::Section'
[2023-04-05T17:09:01.507Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message.cc:573:26 in
[2023-04-05T17:09:01.507Z] message.cc:574:9: runtime error: load of value 4, which is not a valid value for type 'const isc::dns::Message::Section'
--
[2023-04-05T17:09:01.507Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message_unittest.cc:468:5 in
[2023-04-05T17:09:01.507Z] message.cc:1134:26: runtime error: load of value 4, which is not a valid value for type 'const isc::dns::Message::Section'
[2023-04-05T17:09:01.507Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message.cc:1134:26 in
[2023-04-05T17:09:01.507Z] message.cc:1135:9: runtime error: load of value 4, which is not a valid value for type 'const isc::dns::Message::Section'
--
[2023-04-05T17:09:01.507Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message_unittest.cc:475:5 in
[2023-04-05T17:09:01.507Z] message.cc:1147:26: runtime error: load of value 4, which is not a valid value for type 'const isc::dns::Message::Section'
[2023-04-05T17:09:01.507Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message.cc:1147:26 in
[2023-04-05T17:09:01.507Z] message.cc:1148:9: runtime error: load of value 4, which is not a valid value for type 'const isc::dns::Message::Section'
--
[2023-04-05T17:09:01.507Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message_unittest.cc:482:5 in
[2023-04-05T17:09:01.507Z] message.cc:988:26: runtime error: load of value 4, which is not a valid value for type 'const isc::dns::Message::Section'
[2023-04-05T17:09:01.507Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message.cc:988:26 in
[2023-04-05T17:09:01.507Z] message.cc:989:9: runtime error: load of value 4, which is not a valid value for type 'const isc::dns::Message::Section'
--
[2023-04-05T17:09:01.518Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior token.cc:194:22 in
[2023-04-05T17:09:01.518Z] token.cc:196:12: runtime error: load of misaligned address 0x7fffffffb3f9 for type 'int16_t' (aka 'short'), which requires 2 byte alignment
--
[2023-04-05T17:09:01.518Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior token.cc:225:22 in
[2023-04-05T17:09:01.518Z] token.cc:227:12: runtime error: load of misaligned address 0x7fffffffb3f9 for type 'int32_t' (aka 'int'), which requires 4 byte alignment
--
[2023-04-05T17:09:01.518Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior token.cc:285:22 in
[2023-04-05T17:09:01.518Z] token.cc:287:12: runtime error: load of misaligned address 0x7fffffffb3f9 for type 'uint16_t' (aka 'unsigned short'), which requires 2 byte alignment
--
[2023-04-05T17:09:01.519Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior token.cc:316:22 in
[2023-04-05T17:09:01.519Z] token.cc:318:12: runtime error: load of misaligned address 0x7fffffffb3f9 for type 'uint32_t' (aka 'unsigned int'), which requires 4 byte alignment
--
[2023-04-05T17:09:01.519Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../src/lib/eval/token.h:522:17 in
[2023-04-05T17:09:01.519Z] token.cc:438:13: runtime error: load of value 100, which is not a valid value for type 'isc::dhcp::TokenPkt::MetadataType'
[2023-04-05T17:09:01.519Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior token.cc:438:13 in
[2023-04-05T17:09:01.519Z] token.cc:464:9: runtime error: load of value 100, which is not a valid value for type 'isc::dhcp::TokenPkt::MetadataType'
--
[2023-04-05T17:09:01.519Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../src/lib/eval/token.h:577:17 in
[2023-04-05T17:09:01.519Z] token.cc:493:17: runtime error: load of value 100, which is not a valid value for type 'isc::dhcp::TokenPkt4::FieldType'
[2023-04-05T17:09:01.519Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior token.cc:493:17 in
[2023-04-05T17:09:01.519Z] token.cc:541:13: runtime error: load of value 100, which is not a valid value for type 'isc::dhcp::TokenPkt4::FieldType'
--
[2023-04-05T17:09:01.519Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../src/lib/eval/token.h:623:17 in
[2023-04-05T17:09:01.519Z] token.cc:571:15: runtime error: load of value 100, which is not a valid value for type 'isc::dhcp::TokenPkt6::FieldType'
[2023-04-05T17:09:01.519Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior token.cc:571:15 in
[2023-04-05T17:09:01.519Z] token.cc:585:11: runtime error: load of value 100, which is not a valid value for type 'isc::dhcp::TokenPkt6::FieldType'
--
[2023-04-05T17:09:01.535Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../src/lib/dhcpsrv/network.h:1236:5 in
[2023-04-05T17:09:01.535Z] ../../../../src/lib/dhcpsrv/network.h:1247:5: runtime error: member call on misaligned address 0x00080f440e08 for type 'const isc::dhcp::Network4 *', which requires 16 byte alignment
--
[2023-04-05T17:09:01.535Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../src/lib/dhcpsrv/network.h:1247:5 in
[2023-04-05T17:09:01.535Z] ../../../../src/lib/dhcpsrv/network.h:1259:10: runtime error: member call on misaligned address 0x00080f441188 for type 'isc::dhcp::Network4 *', which requires 16 byte alignment
--
[2023-04-05T17:09:01.535Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../src/lib/dhcpsrv/network.h:1259:10 in
[2023-04-05T17:09:01.535Z] ../../../../src/lib/dhcpsrv/network.h:1232:7: runtime error: member call on misaligned address 0x00080f441188 for type 'isc::dhcp::Network4 *', which requires 16 byte alignment
--
[2023-04-05T17:09:01.535Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../src/lib/dhcpsrv/network.h:1232:7 in
[2023-04-05T17:09:01.535Z] ../../../../src/lib/dhcpsrv/network.h:1270:5: runtime error: member call on misaligned address 0x00080f440e08 for type 'const isc::dhcp::Network4 *', which requires 16 byte alignment
--
[2023-04-05T17:09:01.535Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../src/lib/dhcpsrv/network.h:1270:5 in
[2023-04-05T17:09:01.535Z] ../../../../src/lib/dhcpsrv/network.h:1281:10: runtime error: member call on misaligned address 0x00080f441188 for type 'isc::dhcp::Network4 *', which requires 16 byte alignment
--
[2023-04-05T17:09:01.535Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../src/lib/dhcpsrv/network.h:1281:10 in
[2023-04-05T17:09:01.535Z] ../../../../src/lib/dhcpsrv/network.h:1296:5: runtime error: member call on misaligned address 0x00080f440e08 for type 'const isc::dhcp::Network4 *', which requires 16 byte alignment
--
[2023-04-05T17:09:01.535Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../src/lib/dhcpsrv/network.h:1296:5 in
[2023-04-05T17:09:01.535Z] network.cc:280:11: runtime error: member call on misaligned address 0x00080f441188 for type 'isc::dhcp::Network4 *', which requires 16 byte alignment
--
[2023-04-05T17:09:01.535Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior network.cc:280:11 in
[2023-04-05T17:09:01.535Z] ../../../../src/lib/dhcpsrv/network.h:1311:5: runtime error: member call on misaligned address 0x00080f440e08 for type 'const isc::dhcp::Network4 *', which requires 16 byte alignment
--
[2023-04-05T17:09:01.535Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../src/lib/dhcpsrv/network.h:1311:5 in
[2023-04-05T17:09:01.535Z] network.cc:289:11: runtime error: member call on misaligned address 0x00080f441188 for type 'isc::dhcp::Network4 *', which requires 16 byte alignment
--
[2023-04-05T17:09:01.535Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior network.cc:289:11 in
[2023-04-05T17:09:01.535Z] ../../../../src/lib/dhcpsrv/network.h:1327:5: runtime error: member call on misaligned address 0x00080f440e08 for type 'const isc::dhcp::Network4 *', which requires 16 byte alignment
--
[2023-04-05T17:09:01.535Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../src/lib/dhcpsrv/network.h:1327:5 in
[2023-04-05T17:09:01.535Z] network.cc:294:11: runtime error: member call on misaligned address 0x00080f441188 for type 'isc::dhcp::Network4 *', which requires 16 byte alignment
--
[2023-04-05T17:09:01.535Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior network.cc:294:11 in
[2023-04-05T17:09:01.535Z] ../../../../src/lib/dhcpsrv/network.h:1345:5: runtime error: member call on misaligned address 0x00080f440e08 for type 'const isc::dhcp::Network4 *', which requires 16 byte alignment
--
[2023-04-05T17:09:01.535Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../src/lib/dhcpsrv/network.h:1345:5 in
[2023-04-05T17:09:01.535Z] ../../../../src/lib/dhcpsrv/network.h:1336:10: runtime error: member call on misaligned address 0x00080f441188 for type 'isc::dhcp::Network4 *', which requires 16 byte alignment
--
[2023-04-05T17:09:01.535Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../src/lib/dhcpsrv/network.h:1397:5 in
[2023-04-05T17:09:01.535Z] ../../../../src/lib/dhcpsrv/network.h:1406:5: runtime error: member call on misaligned address 0x00080f440e08 for type 'const isc::dhcp::Network6 *', which requires 16 byte alignment
--
[2023-04-05T17:09:01.535Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../src/lib/dhcpsrv/network.h:1406:5 in
[2023-04-05T17:09:01.535Z] ../../../../src/lib/dhcpsrv/network.h:1417:10: runtime error: member call on misaligned address 0x00080f441188 for type 'isc::dhcp::Network6 *', which requires 16 byte alignment
--
[2023-04-05T17:09:01.535Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../src/lib/dhcpsrv/network.h:1417:10 in
[2023-04-05T17:09:01.535Z] ../../../../src/lib/dhcpsrv/network.h:1393:7: runtime error: member call on misaligned address 0x00080f441188 for type 'isc::dhcp::Network6 *', which requires 16 byte alignment
--
[2023-04-05T17:09:01.535Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../src/lib/dhcpsrv/network.h:1393:7 in
[2023-04-05T17:09:01.535Z] ../../../../src/lib/dhcpsrv/network.h:1463:5: runtime error: member call on misaligned address 0x00080f440e08 for type 'const isc::dhcp::Network6 *', which requires 16 byte alignment
--
[2023-04-05T17:09:01.535Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../src/lib/dhcpsrv/network.h:1463:5 in
[2023-04-05T17:09:01.535Z] ../../../../src/lib/dhcpsrv/network.h:1477:10: runtime error: member call on misaligned address 0x00080f441188 for type 'isc::dhcp::Network6 *', which requires 16 byte alignment
--
[2023-04-05T17:09:01.535Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../src/lib/dhcpsrv/network.h:1477:10 in
[2023-04-05T17:09:01.535Z] ../../../../src/lib/dhcpsrv/network.h:1425:15: runtime error: member call on misaligned address 0x00080f440e08 for type 'const isc::dhcp::Network6 *', which requires 16 byte alignment
--
[2023-04-05T17:09:01.535Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../src/lib/dhcpsrv/network.h:1425:15 in
[2023-04-05T17:09:01.535Z] ../../../../src/lib/dhcpsrv/network.h:1433:10: runtime error: member call on misaligned address 0x00080f441188 for type 'isc::dhcp::Network6 *', which requires 16 byte alignment
--
[2023-04-05T17:09:01.541Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior option4_client_fqdn.cc:483:20 in
[2023-04-05T17:09:01.541Z] option4_client_fqdn.cc:161:32: runtime error: load of value 2883715237, which is not a valid value for type 'Option4ClientFqdn::DomainNameType'
--
[2023-04-05T17:09:01.599Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /usr/local/include/boost/smart_ptr/shared_ptr.hpp:990:13 in
[2023-04-05T17:09:01.599Z] ../../../src/bin/perfdhcp/localized_option.h:98:44: runtime error: member call on address 0x00080694df20 which does not point to an object of type 'isc::dhcp::Option6IA'
--
[2023-04-05T17:09:01.599Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../src/bin/perfdhcp/localized_option.h:98:44 in
[2023-04-05T17:09:01.599Z] ../../../src/bin/perfdhcp/localized_option.h:101:25: runtime error: member call on address 0x00080694df20 which does not point to an object of type 'isc::dhcp::Option6IA'
--
[2023-04-05T17:09:01.612Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior token.cc:316:22 in
[2023-04-05T17:09:01.612Z] token.cc:318:12: runtime error: load of misaligned address 0x7fffffff9c69 for type 'uint32_t' (aka 'unsigned int'), which requires 4 byte alignment
--
[2023-04-05T17:21:57.357Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message.cc:406:9 in
[2023-04-05T17:21:57.357Z] message.cc:406:23: runtime error: load of value 65536, which is not a valid value for type 'const isc::dns::Message::HeaderFlag'
[2023-04-05T17:21:57.357Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message.cc:406:23 in
[2023-04-05T17:21:57.357Z] message.cc:407:9: runtime error: load of value 65536, which is not a valid value for type 'const isc::dns::Message::HeaderFlag'
--
[2023-04-05T17:21:57.357Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message_unittest.cc:283:5 in
[2023-04-05T17:21:57.357Z] message.cc:492:26: runtime error: load of value 4, which is not a valid value for type 'const isc::dns::Message::Section'
[2023-04-05T17:21:57.357Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message.cc:492:26 in
[2023-04-05T17:21:57.357Z] message.cc:493:9: runtime error: load of value 4, which is not a valid value for type 'const isc::dns::Message::Section'
--
[2023-04-05T17:21:57.357Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message_unittest.cc:310:5 in
[2023-04-05T17:21:57.357Z] message.cc:508:26: runtime error: load of value 4, which is not a valid value for type 'const isc::dns::Message::Section'
[2023-04-05T17:21:57.357Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message.cc:508:26 in
[2023-04-05T17:21:57.357Z] message.cc:509:9: runtime error: load of value 4, which is not a valid value for type 'const isc::dns::Message::Section'
--
[2023-04-05T17:21:57.357Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message_unittest.cc:336:5 in
[2023-04-05T17:21:57.357Z] message.cc:521:26: runtime error: load of value 4, which is not a valid value for type 'const isc::dns::Message::Section'
[2023-04-05T17:21:57.357Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message.cc:521:26 in
[2023-04-05T17:21:57.357Z] message.cc:522:9: runtime error: load of value 4, which is not a valid value for type 'const isc::dns::Message::Section'
[2023-04-05T17:21:57.357Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message.cc:522:9 in
[2023-04-05T17:21:57.357Z] message_unittest.cc:359:5: runtime error: load of value 4, which is not a valid value for type 'const Message::Section'
[2023-04-05T17:21:57.357Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message_unittest.cc:359:5 in
[2023-04-05T17:21:57.357Z] message.cc:538:22: runtime error: load of value 4, which is not a valid value for type 'const isc::dns::Message::Section'
--
[2023-04-05T17:21:57.357Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message_unittest.cc:461:5 in
[2023-04-05T17:21:57.357Z] message.cc:573:26: runtime error: load of value 4, which is not a valid value for type 'const isc::dns::Message::Section'
[2023-04-05T17:21:57.357Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message.cc:573:26 in
[2023-04-05T17:21:57.357Z] message.cc:574:9: runtime error: load of value 4, which is not a valid value for type 'const isc::dns::Message::Section'
--
[2023-04-05T17:21:57.357Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message_unittest.cc:468:5 in
[2023-04-05T17:21:57.357Z] message.cc:1134:26: runtime error: load of value 4, which is not a valid value for type 'const isc::dns::Message::Section'
[2023-04-05T17:21:57.357Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message.cc:1134:26 in
[2023-04-05T17:21:57.357Z] message.cc:1135:9: runtime error: load of value 4, which is not a valid value for type 'const isc::dns::Message::Section'
--
[2023-04-05T17:21:57.357Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message_unittest.cc:475:5 in
[2023-04-05T17:21:57.357Z] message.cc:1147:26: runtime error: load of value 4, which is not a valid value for type 'const isc::dns::Message::Section'
[2023-04-05T17:21:57.357Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message.cc:1147:26 in
[2023-04-05T17:21:57.357Z] message.cc:1148:9: runtime error: load of value 4, which is not a valid value for type 'const isc::dns::Message::Section'
[2023-04-05T17:21:57.357Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message.cc:1148:9 in
--
[2023-04-05T17:21:57.357Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message_unittest.cc:482:5 in
[2023-04-05T17:21:57.357Z] message.cc:988:26: runtime error: load of value 4, which is not a valid value for type 'const isc::dns::Message::Section'
[2023-04-05T17:21:57.357Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message.cc:988:26 in
[2023-04-05T17:21:57.357Z] message.cc:989:9: runtime error: load of value 4, which is not a valid value for type 'const isc::dns::Message::Section'
--
[2023-04-05T17:21:57.370Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../src/lib/eval/token.h:522:17 in
[2023-04-05T17:21:57.370Z] token.cc:438:13: runtime error: load of value 100, which is not a valid value for type 'isc::dhcp::TokenPkt::MetadataType'
[2023-04-05T17:21:57.370Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior token.cc:438:13 in
[2023-04-05T17:21:57.370Z] token.cc:464:9: runtime error: load of value 100, which is not a valid value for type 'isc::dhcp::TokenPkt::MetadataType'
--
[2023-04-05T17:21:57.370Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../src/lib/eval/token.h:577:17 in
[2023-04-05T17:21:57.370Z] token.cc:493:17: runtime error: load of value 100, which is not a valid value for type 'isc::dhcp::TokenPkt4::FieldType'
[2023-04-05T17:21:57.370Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior token.cc:493:17 in
[2023-04-05T17:21:57.370Z] token.cc:541:13: runtime error: load of value 100, which is not a valid value for type 'isc::dhcp::TokenPkt4::FieldType'
--
[2023-04-05T17:21:57.370Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../../src/lib/eval/token.h:623:17 in
[2023-04-05T17:21:57.370Z] token.cc:571:15: runtime error: load of value 100, which is not a valid value for type 'isc::dhcp::TokenPkt6::FieldType'
[2023-04-05T17:21:57.370Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior token.cc:571:15 in
[2023-04-05T17:21:57.370Z] token.cc:585:11: runtime error: load of value 100, which is not a valid value for type 'isc::dhcp::TokenPkt6::FieldType'
--
[2023-04-05T17:21:57.381Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior option4_client_fqdn.cc:483:20 in
[2023-04-05T17:21:57.381Z] option4_client_fqdn.cc:161:32: runtime error: load of value 61603841, which is not a valid value for type 'Option4ClientFqdn::DomainNameType'
--
[2023-04-05T17:21:57.455Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /usr/include/boost/smart_ptr/shared_ptr.hpp:935:13 in
[2023-04-05T17:21:57.455Z] ../../../src/bin/perfdhcp/localized_option.h:98:44: runtime error: member call on address 0x0000038b8780 which does not point to an object of type 'isc::dhcp::Option6IA'
--
[2023-04-05T17:21:57.455Z] SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../../../src/bin/perfdhcp/localized_option.h:98:44 in
[2023-04-05T17:21:57.455Z] ../../../src/bin/perfdhcp/localized_option.h:101:25: runtime error: member call on address 0x0000038b8780 which does not point to an object of type 'isc::dhcp::Option6IA'