From 6dfd90818404d4204ac81fc2e3c752164b1f6401 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Thu, 21 Sep 2023 17:23:53 +0200 Subject: [PATCH] CoapPacket - If we are in the 16-bit extended option delta mode and we come across a non 4bit length, then assert falsely --- source/doap/protocol/packet.d | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/doap/protocol/packet.d b/source/doap/protocol/packet.d index 25c7edf..264bc6e 100644 --- a/source/doap/protocol/packet.d +++ b/source/doap/protocol/packet.d @@ -481,6 +481,11 @@ public class CoapPacket writeln("Built option: ", option); createdOptions ~= option; } + else + { + writeln("OptionDelta14 Mode: We don't yet support other option lengths in this mode"); + assert(false); + }