While looking through the audit patches, I noticed a probable bug in
GSMime. The attached patch should fix it, but I don't use the code and I
have no way of testing the conditions that are involved.

- Alexander Malmberg
Index: Source/Additions/GSMime.m
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/base/Source/Additions/GSMime.m,v
retrieving revision 1.87
diff -u -r1.87 GSMime.m
--- Source/Additions/GSMime.m   5 Jan 2004 18:28:18 -0000       1.87
+++ Source/Additions/GSMime.m   8 Jan 2004 00:52:40 -0000
@@ -1245,7 +1245,7 @@
 
       if (flags.wantEndOfLine == 1)
        {
-         result = [self parse: [NSData dataWithBytes: @"\r\n" length: 2]];
+         result = [self parse: [NSData dataWithBytes: "\r\n" length: 2]];
        }
       else if (flags.inBody == 1)
        {
@@ -1257,7 +1257,7 @@
           * If still parsing headers, add CR-LF sequences to terminate
           * the headers.
            */
-         result = [self parse: [NSData dataWithBytes: @"\r\n\r\n" length: 4]];
+         result = [self parse: [NSData dataWithBytes: "\r\n\r\n" length: 4]];
        }
       flags.wantEndOfLine = 0;
       flags.inBody = 0;
_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to