1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 3.2//EN">
4 <TITLE> [IRCServices] patch
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">
13 <BODY BGCOLOR=
"#ffffff">
14 <H1>[IRCServices] patch
</H1>
16 <A HREF=
"mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20patch&In-Reply-To="
17 TITLE=
"[IRCServices] patch">andrewk at icon.co.za
19 <I>Sat Aug
12 09:
09:
05 PDT
2000</I>
21 <LI>Previous message:
<A HREF=
"000683.html">[IRCServices] patch
23 <LI>Next message:
<A HREF=
"000684.html">FW: [IRCServices] patch
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>
38 ----- Original Message -----
39 From:
"Mircea Damian
" <<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">dmircea at linux.kappa.ro
</A>>
40 To:
<<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">ircservices at Delirious.shadowfire.org
</A>>
41 Sent: Saturday, August
12,
2000 4:
18 PM
42 Subject: [IRCServices] patch
47 </I>><i> Here is a small patch against the latest version of ircservices (
4.4.5)
48 </I>><i> which fixes two things:
50 </I>><i> - password encryption when compiled with gcc-
2.7.2.x: the problem is that
51 </I>><i> the buffers need to be initialized to
0 and by default they are full of
54 </I>><i> - fix a possible smalloc(
0) in sessions.c when it reads the exceptions
55 </I>><i> which is possible to be an empty =
> nexceptions =
0 =
> smalloc(
0);
56 </I>><i> obviuous solution was to move smalloc after the check
59 </I>><i> diff -r -u ircservices-
4.4.5-clean/encrypt.c ircservices-
4.4.5/encrypt.c
60 </I>><i> --- ircservices-
4.4.5-clean/encrypt.c Sat Jan
29 07:
17:
51 2000
61 </I>><i> +++ ircservices-
4.4.5/encrypt.c Wed Aug
9 17:
35:
48 2000
62 </I>><i> @@ -
356,
6 +
356,
11 @@
64 </I>><i> if (size
< 16)
65 </I>><i> return -
1;
67 </I>><i> + memset(
&context,
0, sizeof(context));
68 </I>><i> + memset(
&digest,
0, sizeof(digest));
71 </I>><i> MD5Init(
&context);
72 </I>><i> MD5Update(
&context, src, len);
73 </I>><i> MD5Final(digest,
&context);
74 </I>><i> diff -r -u ircservices-
4.4.5-clean/sessions.c ircservices-
4.4.5/sessions.c
75 </I>><i> --- ircservices-
4.4.5-clean/sessions.c Wed Mar
15 09:
15:
01 2000
76 </I>><i> +++ ircservices-
4.4.5/sessions.c Wed Aug
9 17:
30:
22 2000
77 </I>><i> @@ -
381,
11 +
381,
11 @@
79 </I>><i> SAFE(read_int16(
&n, f));
80 </I>><i> nexceptions = n;
81 </I>><i> - exceptions = smalloc(sizeof(Exception) * nexceptions);
82 </I>><i> if (!nexceptions) {
83 </I>><i> close_db(f);
86 </I>><i> + exceptions = smalloc(sizeof(Exception) * nexceptions);
87 </I>><i> for (i =
0; i
< nexceptions; i++) {
88 </I>><i> SAFE(read_string(
&exceptions[i].mask, f));
89 </I>><i> SAFE(read_int16(
&tmp16, f));
92 </I>><i> Mircea Damian
93 </I>><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>><i> WebPage:
<A HREF=
"http://taz.mania.k.ro/~dmircea/">http://taz.mania.k.ro/~dmircea/
</A>
96 </I>><i> ---------------------------------------------------------------
97 </I>><i> To unsubscribe, send email to
<A HREF=
"http://www.ircservices.za.net/mailman/listinfo/ircservices">majordomo at ender.shadowfire.org
</A>
98 </I>><i> with
"unsubscribe ircservices
" in the body, without the quotes.
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
"unsubscribe ircservices
" in the body, without the quotes.
113 <LI>Previous message:
<A HREF=
"000683.html">[IRCServices] patch
115 <LI>Next message:
<A HREF=
"000684.html">FW: [IRCServices] patch
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>