Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/lib/test-array.c
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,11 @@ enum fatal_test_state fatal_array(unsigned int stage)

t_array_init(&arr, 2);
array_push_back(&arr, value);
#if SIZEOF_SIZE_T > 4 /* MALLOC_MULTIPLY will fail before buffer_check_limits with 32bit */
test_expect_fatal_string("Buffer write out of range");
#else
test_expect_fatal_string("memory allocation overflow");
#endif
/* this is supposed to assert-crash before it even attempts to
access value */
array_append(&arr, value, UINT_MAX);
Expand Down