]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: test-istream-base64-decoder - Reduce minimum random stream buffer size to 1.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Wed, 4 Sep 2019 23:13:46 +0000 (01:13 +0200)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Tue, 10 Sep 2019 07:02:42 +0000 (10:02 +0300)
src/lib/test-istream-base64-decoder.c

index 21106697212a14811da01ff8eaa5aabd66082e72..bb4e6b3b31ad6b1cb3c7aa2a923b590cdc2665af 100644 (file)
@@ -234,10 +234,10 @@ test_istream_base64_io_random(void)
 
 
                /* Assign random buffer sizes */
-               i_stream_set_max_buffer_size(input5, i_rand_minmax(4, 512));
-               i_stream_set_max_buffer_size(input4, i_rand_minmax(4, 512));
-               i_stream_set_max_buffer_size(input3, i_rand_minmax(4, 512));
-               i_stream_set_max_buffer_size(input2, i_rand_minmax(4, 512));
+               i_stream_set_max_buffer_size(input5, i_rand_minmax(1, 512));
+               i_stream_set_max_buffer_size(input4, i_rand_minmax(1, 512));
+               i_stream_set_max_buffer_size(input3, i_rand_minmax(1, 512));
+               i_stream_set_max_buffer_size(input2, i_rand_minmax(1, 512));
 
                /* Read the outer stream in full with random increments. */
                top_input = sinput4;