Skip to content

Test for overflow conditions in validation involving offsets and sizes #4617

@ErichDonGubler

Description

@ErichDonGubler

Validation in CTS tends to do a good job of covering edge cases for limits. We in Firefox have noticed that CTS' validation generally doesn't try to cover edge cases for the bounds of integral values, and this seems interesting to add. This is valuable because:

  1. Obviously, validation of bounds always needs to be robust for these edge cases.
  2. Less obviously, rendered diagnostics should also not encounter overflow.

Adding coverage for (1) is essential for ensuring that an implementation safely handles inputs, independent of things like maximum values for limits. (2) is nice, and generally comes for free with (1).

JS doesn't tend to give direct access to overflow cases for GPUSize64s, but this seems achievable with APIs that accept GPUSize32s offsets and sizes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions