Commit 33cb4f43 authored by Ross Light's avatar Ross Light

Verify that canonical user input is actually canonical

parent 6e9ff9fa
......@@ -1006,6 +1006,9 @@ private:
kj::ArrayPtr<const word> segments[1] = { words };
SegmentArrayMessageReader message(segments, options);
if (convertFrom == Format::CANONICAL) {
KJ_REQUIRE(message.isCanonical());
}
return writeConversion(message.getRoot<AnyStruct>(), output);
}
case Format::FLAT_PACKED: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment