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
The call becomes test(_Assume_bounds_cast<int _Checked[1]>(b, bounds(unknown)));. The target type of the cast should instead be _Array_ptr<int>. This cast would be valid because the checked array type int _Checked[1] in a function parameter decays to a checked array pointer type _Array_ptr<int>.
mattmccutchen-cci
changed the title
_Assume_bounds_cast added with non-Ptr type variable
_Assume_bounds_cast added with checked array type
Oct 20, 2021
The icecast benchmarks includes a few copies of this error:
According to the spec,
_Assume_bounds_cast
must use a checked pointer type (_Ptr
,_Array_ptr
, or_Nt_array_ptr
).In this case, both
MD5Transform
andctx->buf
use identicaluint32_t buf[4]
types in the source. I assumectx
could not be verified, hence the cast.We probably need a new code path for sized arrays, if it doesn't already exist.
The text was updated successfully, but these errors were encountered: