You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When decoding cluster elements that are of type enum* or bitmap* using the generated stuff in cluster-enums.h or cluster-objects.h, enum values that are not recognized still get silently decoded without any conveyance of failure.
This can result in un-defined behavior in application logic that is unaware that the decoded value is not actually valid against their compiled-in definition of that enumeration/bitmap.
While this won't practically be a problem till post 1.0, it's important to solve it before 1.0 since clients need to be built to be defensive now since upgrading them later is likely not always possible.
The text was updated successfully, but these errors were encountered:
Spec Issue Review: Per @bzbarsky-apple we should confirm that this is a spec compliance issue, if not, remove the label. Still makes sense for 1.0 for forwards compatibility.
Problem
When decoding cluster elements that are of type
enum*
orbitmap*
using the generated stuff incluster-enums.h
orcluster-objects.h
, enum values that are not recognized still get silently decoded without any conveyance of failure.This can result in un-defined behavior in application logic that is unaware that the decoded value is not actually valid against their compiled-in definition of that enumeration/bitmap.
While this won't practically be a problem till post 1.0, it's important to solve it before 1.0 since clients need to be built to be defensive now since upgrading them later is likely not always possible.
The text was updated successfully, but these errors were encountered: