[or-cvs] r17603: {tor} Do not discard sign on return values of iv crypto functions (tor/trunk/src/or)
nickm at seul.org
nickm at seul.org
Thu Dec 11 21:11:31 UTC 2008
Author: nickm
Date: 2008-12-11 16:11:31 -0500 (Thu, 11 Dec 2008)
New Revision: 17603
Modified:
tor/trunk/src/or/test.c
Log:
Do not discard sign on return values of iv crypto functions in tests. May fix CID 9. Might not.
Modified: tor/trunk/src/or/test.c
===================================================================
--- tor/trunk/src/or/test.c 2008-12-11 21:11:28 UTC (rev 17602)
+++ tor/trunk/src/or/test.c 2008-12-11 21:11:31 UTC (rev 17603)
@@ -4086,7 +4086,7 @@
char *plain, *encrypted1, *encrypted2, *decrypted1, *decrypted2;
char plain_1[1], plain_15[15], plain_16[16], plain_17[17];
char key1[16], key2[16];
- size_t encrypted_size, decrypted_size;
+ ssize_t encrypted_size, decrypted_size;
plain = tor_malloc(4095);
encrypted1 = tor_malloc(4095 + 1 + 16);
More information about the tor-commits
mailing list