From: Dovecot Maintainers Date: Thu, 14 May 2026 17:29:38 +0000 (-0400) Subject: bit-test-array-fixes X-Git-Tag: archive/raspbian/1%2.4.4+dfsg1-1+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=31e27ad9a491671417d3375e65566a86a89504d6;p=dovecot.git bit-test-array-fixes =================================================================== Gbp-Pq: Name 32-bit-test-array-fixes.patch --- diff --git a/src/lib/test-array.c b/src/lib/test-array.c index a0eeb29..1f2240c 100644 --- a/src/lib/test-array.c +++ b/src/lib/test-array.c @@ -461,7 +461,14 @@ enum fatal_test_state fatal_array(unsigned int stage) t_array_init(&arr, 2); array_push_back(&arr, value); + /* this test triggers different failures on 32- versus + * 64-bit architectures. It's a failure in both cases, + * so we just handle it... */ +#if SIZEOF_VOID_P == 4 + test_expect_fatal_string("memory allocation overflow"); +#else test_expect_fatal_string("Buffer write out of range"); +#endif /* this is supposed to assert-crash before it even attempts to access value */ array_append(&arr, value, UINT_MAX);