"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/lib-mail/test-qp-decoder.c" between
dovecot-2.3.16.tar.gz and dovecot-2.3.17.tar.gz

About: Dovecot is an IMAP and POP3 server, written with security primarily in mind.

test-qp-decoder.c  (dovecot-2.3.16):test-qp-decoder.c  (dovecot-2.3.17)
skipping to change at line 166 skipping to change at line 166
ret = -1; ret = -1;
} }
test_assert_idx(ret == tests[i].ret, i); test_assert_idx(ret == tests[i].ret, i);
test_assert_idx(ret == 0 || error_pos == tests[i].error_pos, i); test_assert_idx(ret == 0 || error_pos == tests[i].error_pos, i);
test_assert_strcmp_idx(str_c(str), tests[i].output, i); test_assert_strcmp_idx(str_c(str), tests[i].output, i);
/* try in small pieces */ /* try in small pieces */
str_truncate(str, 0); str_truncate(str, 0);
ret = 0; ret = 0;
for (j = 0; input[j] != '\0'; j++) { for (j = 0; input[j] != '\0'; j++) {
unsigned char c = input[j]; unsigned char c = (unsigned char)input[j];
if (qp_decoder_more(qp, &c, 1, &error_pos, &error) < 0) if (qp_decoder_more(qp, &c, 1, &error_pos, &error) < 0)
ret = -1; ret = -1;
} }
if (qp_decoder_finish(qp, &error) < 0) if (qp_decoder_finish(qp, &error) < 0)
ret = -1; ret = -1;
test_assert_idx(ret == tests[i].ret, i); test_assert_idx(ret == tests[i].ret, i);
test_assert_strcmp_idx(str_c(str), tests[i].output, i); test_assert_strcmp_idx(str_c(str), tests[i].output, i);
qp_decoder_deinit(&qp); qp_decoder_deinit(&qp);
str_truncate(str, 0); str_truncate(str, 0);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)