Skip to content

Bug: Truncation casts in array_view/com_array and elsewhere? #1347

Closed as not planned
@jonwis

Description

@jonwis

Version

2.0.220131.2

Summary

See #1343 where we noticed a bunch of places that convert from a size_t to an ABI-friendly uint32_t via static_cast. Each instance probably needs to be analyzed and replaced with a WINRT_ASSERT or WINRT_VERIFY or some form of "checked conversion cast" method.

Reproducible example

No response

Expected behavior

No response

Actual behavior

No response

Additional comments

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions