add missing check on invalid Union[] selector

This commit is contained in:
Michael Davidsaver
2023-11-10 08:46:39 -08:00
parent 17464a117a
commit a6b3eb58bd
+3
View File
@@ -532,6 +532,9 @@ void from_wire_field(Buffer& buf, TypeStore& ctxt, const FieldDesc* desc, const
from_wire_full(buf, ctxt, fld);
return;
} else { // invalid selection
buf.fault(__FILE__, __LINE__);
}
}
break;