Update of /cvsroot/mahogany/M/src/util
In directory usw-pr-cvs1:/tmp/cvs-serv11555/src/util
Modified Files:
strutil.cpp
Log Message:
don't assert if the encrypted password string is illegal, but tell the user about it
Index: strutil.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/util/strutil.cpp,v
retrieving revision 1.104
retrieving revision 1.105
diff -b -u -2 -r1.104 -r1.105
--- strutil.cpp 25 Apr 2002 18:25:41 -0000 1.104
+++ strutil.cpp 4 Jul 2002 14:12:05 -0000 1.105
@@ -1001,5 +1001,11 @@
return strutil_decrypt_tf(original);
- CHECK(original.Length() % 4 == 0, "", "Decrypt function called with illegal
string.");
+ // the encrypted string always has a length divisible by 4
+ if ( original.length() % 4 )
+ {
+ wxLogWarning(_("Decrypt function called with illegal string."));
+
+ return "";
+ }
String
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Caffeinated soap. No kidding.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates