Skip to content

Replace test with invalid-enum-load #2546

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

rascani
Copy link
Contributor

@rascani rascani commented Apr 17, 2024

The TestTypeSizeOf was casting an invalid value for TfLiteType into a variable of that type. This is undefined behavior and triggered ubsan. This PR replaces this test case with using kTfLiteNoType, which will still trigger the default failure case for TfLiteTypeSizeOf.

BUG=b/333708102

The TestTypeSizeOf was casting an invalid value for TfLiteType into a
variable of that type. This is undefined behavior and triggered ubsan.
This PR replaces this test case with using kTfLiteNoType, which will
still trigger the default failure case for TfLiteTypeSizeOf.

BUG=b/333708102
@rascani rascani requested a review from a team as a code owner April 17, 2024 23:12
@rascani rascani requested a review from suleshahid April 17, 2024 23:12
@rascani rascani added the ci:run label Apr 17, 2024
@TFLM-bot TFLM-bot removed the ci:run label Apr 17, 2024
@mergify mergify bot merged commit 26fbc4b into tensorflow:main Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants