]> jfr.im git - irc.git/blob - software/!RELEASES/ircservices/achurch.org/services/lists/ircservices/2000/000685.html
RELEASE -> !RELEASE
[irc.git] / software / !RELEASES / ircservices / achurch.org / services / lists / ircservices / 2000 / 000685.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2 <HTML>
3 <HEAD>
4 <TITLE> [IRCServices] patch
5 </TITLE>
6 <LINK REL="Index" HREF="index.html" >
7 <LINK REL="made" HREF="mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20patch&In-Reply-To=">
8 <META NAME="robots" CONTENT="index,nofollow">
9 <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
10 <LINK REL="Previous" HREF="000683.html">
11 <LINK REL="Next" HREF="000684.html">
12 </HEAD>
13 <BODY BGCOLOR="#ffffff">
14 <H1>[IRCServices] patch</H1>
15 <B>Andrew Kempe</B>
16 <A HREF="mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20patch&In-Reply-To="
17 TITLE="[IRCServices] patch">andrewk at icon.co.za
18 </A><BR>
19 <I>Sat Aug 12 09:09:05 PDT 2000</I>
20 <P><UL>
21 <LI>Previous message: <A HREF="000683.html">[IRCServices] patch
22 </A></li>
23 <LI>Next message: <A HREF="000684.html">FW: [IRCServices] patch
24 </A></li>
25 <LI> <B>Messages sorted by:</B>
26 <a href="date.html#685">[ date ]</a>
27 <a href="thread.html#685">[ thread ]</a>
28 <a href="subject.html#685">[ subject ]</a>
29 <a href="author.html#685">[ author ]</a>
30 </LI>
31 </UL>
32 <HR>
33 <!--beginarticle-->
34 <PRE>shot.
35
36 Andrew
37
38 ----- Original Message -----
39 From: &quot;Mircea Damian&quot; &lt;<A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">dmircea at linux.kappa.ro</A>&gt;
40 To: &lt;<A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">ircservices at Delirious.shadowfire.org</A>&gt;
41 Sent: Saturday, August 12, 2000 4:18 PM
42 Subject: [IRCServices] patch
43
44
45 &gt;<i> Hello,
46 </I>&gt;<i>
47 </I>&gt;<i> Here is a small patch against the latest version of ircservices (4.4.5)
48 </I>&gt;<i> which fixes two things:
49 </I>&gt;<i>
50 </I>&gt;<i> - password encryption when compiled with gcc-2.7.2.x: the problem is that
51 </I>&gt;<i> the buffers need to be initialized to 0 and by default they are full of
52 </I>&gt;<i> garbage
53 </I>&gt;<i>
54 </I>&gt;<i> - fix a possible smalloc(0) in sessions.c when it reads the exceptions
55 </I>&gt;<i> which is possible to be an empty =&gt; nexceptions = 0 =&gt; smalloc(0);
56 </I>&gt;<i> obviuous solution was to move smalloc after the check
57 </I>&gt;<i>
58 </I>&gt;<i>
59 </I>&gt;<i> diff -r -u ircservices-4.4.5-clean/encrypt.c ircservices-4.4.5/encrypt.c
60 </I>&gt;<i> --- ircservices-4.4.5-clean/encrypt.c Sat Jan 29 07:17:51 2000
61 </I>&gt;<i> +++ ircservices-4.4.5/encrypt.c Wed Aug 9 17:35:48 2000
62 </I>&gt;<i> @@ -356,6 +356,11 @@
63 </I>&gt;<i>
64 </I>&gt;<i> if (size &lt; 16)
65 </I>&gt;<i> return -1;
66 </I>&gt;<i> +
67 </I>&gt;<i> + memset(&amp;context, 0, sizeof(context));
68 </I>&gt;<i> + memset(&amp;digest, 0, sizeof(digest));
69 </I>&gt;<i> +
70 </I>&gt;<i> +
71 </I>&gt;<i> MD5Init(&amp;context);
72 </I>&gt;<i> MD5Update(&amp;context, src, len);
73 </I>&gt;<i> MD5Final(digest, &amp;context);
74 </I>&gt;<i> diff -r -u ircservices-4.4.5-clean/sessions.c ircservices-4.4.5/sessions.c
75 </I>&gt;<i> --- ircservices-4.4.5-clean/sessions.c Wed Mar 15 09:15:01 2000
76 </I>&gt;<i> +++ ircservices-4.4.5/sessions.c Wed Aug 9 17:30:22 2000
77 </I>&gt;<i> @@ -381,11 +381,11 @@
78 </I>&gt;<i> case 7:
79 </I>&gt;<i> SAFE(read_int16(&amp;n, f));
80 </I>&gt;<i> nexceptions = n;
81 </I>&gt;<i> - exceptions = smalloc(sizeof(Exception) * nexceptions);
82 </I>&gt;<i> if (!nexceptions) {
83 </I>&gt;<i> close_db(f);
84 </I>&gt;<i> return;
85 </I>&gt;<i> }
86 </I>&gt;<i> + exceptions = smalloc(sizeof(Exception) * nexceptions);
87 </I>&gt;<i> for (i = 0; i &lt; nexceptions; i++) {
88 </I>&gt;<i> SAFE(read_string(&amp;exceptions[i].mask, f));
89 </I>&gt;<i> SAFE(read_int16(&amp;tmp16, f));
90 </I>&gt;<i>
91 </I>&gt;<i> --
92 </I>&gt;<i> Mircea Damian
93 </I>&gt;<i> E-mails: <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">dmircea at kappa.ro</A>, <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">dmircea at roedu.net</A>
94 </I>&gt;<i> WebPage: <A HREF="http://taz.mania.k.ro/~dmircea/">http://taz.mania.k.ro/~dmircea/</A>
95 </I>&gt;<i>
96 </I>&gt;<i> ---------------------------------------------------------------
97 </I>&gt;<i> To unsubscribe, send email to <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">majordomo at ender.shadowfire.org</A>
98 </I>&gt;<i> with &quot;unsubscribe ircservices&quot; in the body, without the quotes.
99 </I>&gt;<i>
100 </I>
101
102 ---------------------------------------------------------------
103 To unsubscribe, send email to <A HREF="http://www.ircservices.za.net/mailman/listinfo/ircservices">majordomo at ender.shadowfire.org</A>
104 with &quot;unsubscribe ircservices&quot; in the body, without the quotes.
105
106
107 </PRE>
108
109 <!--endarticle-->
110 <HR>
111 <P><UL>
112 <!--threads-->
113 <LI>Previous message: <A HREF="000683.html">[IRCServices] patch
114 </A></li>
115 <LI>Next message: <A HREF="000684.html">FW: [IRCServices] patch
116 </A></li>
117 <LI> <B>Messages sorted by:</B>
118 <a href="date.html#685">[ date ]</a>
119 <a href="thread.html#685">[ thread ]</a>
120 <a href="subject.html#685">[ subject ]</a>
121 <a href="author.html#685">[ author ]</a>
122 </LI>
123 </UL>
124
125 </body></html>