Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: TokTok/c-toxcore
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: eb51056fef4471a5cd5d457f4cd59f63d73bddd4
Choose a base ref
..
head repository: TokTok/c-toxcore
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: fe50f6ce4234e800dacaee567cbe250f2259f163
Choose a head ref
Showing with 4 additions and 0 deletions.
  1. +4 −0 toxcore/mem_test.cc
4 changes: 4 additions & 0 deletions toxcore/mem_test.cc
Original file line number Diff line number Diff line change
@@ -31,6 +31,10 @@ TEST(Mem, AllocOverflow)
// 100 elements of 1 gibibyte each.
ptr = mem_valloc(mem, 100, GI);
EXPECT_EQ(ptr, nullptr);

// 128 (a multiple of 2) elements of 1 gibibyte each.
ptr = mem_valloc(mem, 128, GI);
EXPECT_EQ(ptr, nullptr);
}

} // namespace