from_wire_full() more forgiving

This commit is contained in:
Michael Davidsaver
2020-02-28 11:00:06 -08:00
parent c98390e80f
commit 648d7ae2c6
+6 -1
View File
@@ -709,7 +709,12 @@ void from_wire_valid(Buffer& buf, TypeStore& ctxt, Value& val)
{
auto desc = Value::Helper::desc(val);
auto store = Value::Helper::store(val);
assert(!!desc);
if(!desc || !store) {
buf.fault();
return;
}
auto top = store->top;
BitMask valid;