Skip to content

Commit

Permalink
Disable AvifAllocTest.Extremes with msan
Browse files Browse the repository at this point in the history
  • Loading branch information
vrabaud committed Jan 13, 2025
1 parent 839d94e commit fc2ad61
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/gtest/avifallocationtest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,15 @@ TEST(EncodingTest, MaximumInvalidDimensions) {
AVIF_RESULT_UNSUPPORTED_DEPTH);
}

#if !(defined(__clang__) && defined(__has_feature) && __has_feature(memory_sanitizer))
TEST(AvifAllocTest, Extremes) {
void* p1 = avifAlloc(1);
EXPECT_NE(p1, nullptr);
avifFree(p1);

EXPECT_EQ(avifAlloc(std::numeric_limits<size_t>::max()), nullptr);
}
#endif

} // namespace
} // namespace avif

0 comments on commit fc2ad61

Please sign in to comment.