Opened 5 years ago

Closed 5 years ago

#1254 closed defect (fixed)

I2PTunnel: Empty /USER causes OutOfBoundsException

Reported by: killyourtv Owned by: zzz
Priority: minor Milestone: 0.9.13
Component: apps/i2ptunnel Version: 0.9.12
Keywords: Cc:
Parent Tickets:

Description

The syntax for USER is

/USER <ident> <local host> <remote host> :<GECOS>

When accessing the server directly (not within I2P), the following is returned when sending an empty /USER:

USER :Not enough parameters.

Good.

If this is done though I2P the connection is dropped with the following logged (note the line number in IRCFilter.java doesn't match because I've got a couple local changes):

ERROR [Client 4 out] tunnel.socks.I2PSOCKSIRCTunnel: Error filtering outbound data
     java.lang.ArrayIndexOutOfBoundsException: 2
     at net.i2p.i2ptunnel.irc.IRCFilter.outboundFilter(IRCFilter.java:349)
     at net.i2p.i2ptunnel.irc.IrcOutboundFilter.run(IrcOutboundFilter.java:67)
     at java.lang.Thread.run(Thread.java:744)
     at net.i2p.util.I2PThread.run(I2PThread.java:84)

Subtickets

Change History (2)

comment:1 Changed 5 years ago by zzz

  • Owner set to zzz
  • Status changed from new to accepted

easy fix

comment:2 Changed 5 years ago by zzz

  • Resolution set to fixed
  • Status changed from accepted to closed

in 46bc5bc3988a161013ba8b3b4528c495fe8894ab 0.9.12-6

ditto NOTICE and PRIVMSG

Note: See TracTickets for help on using tickets.