[IRCServices] Segmentation Fault problem

&quot &quot
Fri Sep 22 01:16:48 PDT 2000


the error is in here:
       snprintf(buf, sizeof(buf), "OP command used for %s by %s",
         op_params, u->nick);

the patch:

diff chanserv.c chanserv-old.c
3276,3277d3275
<        } else if (!(u2 = finduser(op_params))) {
<       notice_lang(s_ChanServ, u, NICK_X_NOT_IN_USE, op_params);
3314,3315d3311
<        } else if (!(u2 = finduser(op_params))) {
<       notice_lang(s_ChanServ, u, NICK_X_NOT_IN_USE, op_params);


Chris Knipe wrote:

> On Thu, 21 Sep 2000, Leandro R. Barbosa wrote:
>
> Talking under correction here...  If my memory serves me right, this is a
> bug in GCC.
>
> Have you tried upgrading your compiler and recompiling the services?  This
> is a generic bug.  Even BitchX / ircII can crash with a %s%s
>
> Have a nice day :)
>
> >[8:08pm] <services.via-rs.com.br> PANIC! buffer = :]BiG_|_DiCk[ PRIVMSG
> >chanserv :op #mas %s%s
> >[8:08pm] <irc.via-rs.com.br> Received SQUIT services.via-rs.com.br from
> >services.via-rs.com.br[200.198.128.55] (Services terminating: Segmentation
> >fault)
> >
> >GOD DAMNIT! I can't take it anymore! We are using version 4.3.3 of
> >Services, and the Unreal3.0-Morrigan(fix) ircd, and this bug is REALLY
> >ANNOYING!
> >
> >The problem is, ANYONE can crash the Services, simply by doing some
> >commands (which I don't know what is), and man, this is getting a pain in
> >the ass...
> >
> >Can someone please, just tell us how can we fix it? Btw, sorry my bad
> >english... It is still under construction ;)
> >
> >Best regards
> >
> >VIA-RS IRC Team
> >
> >Cya,
> >
> >Leandro "MuTLY" Barbosa
> >mailto:mutly at jedi.com.br
> >
> >
> >---------------------------------------------------------------
> >To unsubscribe, send email to majordomo at ender.shadowfire.org
> >with "unsubscribe ircservices" in the body, without the quotes.
> >
>
> --
>
> Regards,
> Chris Knipe
> Cell: (083) 430-8151
>
> ---------------------------------------------------------------
> To unsubscribe, send email to majordomo at ender.shadowfire.org
> with "unsubscribe ircservices" in the body, without the quotes.


---------------------------------------------------------------
To unsubscribe, send email to majordomo at ender.shadowfire.org
with "unsubscribe ircservices" in the body, without the quotes.