Opened 8 years ago

Closed 8 years ago

#559 closed defect (fixed)

String index out of bound, IRC server tunnel

Reported by: DISABLED Owned by: zzz
Priority: minor Milestone: 0.8.12
Component: apps/i2ptunnel Version: 0.8.11
Keywords: IRCD tunnel Cc:
Parent Tickets: Sensitive: no

Description

hi

Exception in thread "ServerHandler? pool /127.0.0.1:9999" java.lang.StringIndexOutOfBoundsException?: String index out of range: 0
2011/11/30 09:22:21 | at java.lang.String.charAt(String.java:686)
2011/11/30 09:22:21 | at net.i2p.i2ptunnel.I2PTunnelIRCServer.filterRegistration(I2PTunnelIRCServer.java:201)
2011/11/30 09:22:21 | at net.i2p.i2ptunnel.I2PTunnelIRCServer.blockingHandle(I2PTunnelIRCServer.java:120)
2011/11/30 09:22:21 | at net.i2p.i2ptunnel.I2PTunnelServer$Handler.run(I2PTunnelServer.java:405)
2011/11/30 09:22:21 | at java.util.concurrent.ThreadPoolExecutor?$Worker.runTask(ThreadPoolExecutor?.java:886)
2011/11/30 09:22:21 | at java.util.concurrent.ThreadPoolExecutor?$Worker.run(ThreadPoolExecutor?.java:908)
2011/11/30 09:22:21 | at java.lang.Thread.run(Thread.java:662)
2011/11/30 09:26:08 | Exception in thread "ServerHandler? pool /127.0.0.1:9999" java.lang.StringIndexOutOfBoundsException?: String index out of range: 0
2011/11/30 09:26:08 | at java.lang.String.charAt(String.java:686)
2011/11/30 09:26:08 | at net.i2p.i2ptunnel.I2PTunnelIRCServer.filterRegistration(I2PTunnelIRCServer.java:201)
2011/11/30 09:26:08 | at net.i2p.i2ptunnel.I2PTunnelIRCServer.blockingHandle(I2PTunnelIRCServer.java:120)
2011/11/30 09:26:08 | at net.i2p.i2ptunnel.I2PTunnelServer$Handler.run(I2PTunnelServer.java:405)
2011/11/30 09:26:08 | at java.util.concurrent.ThreadPoolExecutor?$Worker.runTask(ThreadPoolExecutor?.java:886)
2011/11/30 09:26:08 | at java.util.concurrent.ThreadPoolExecutor?$Worker.run(ThreadPoolExecutor?.java:908)
2011/11/30 09:26:08 | at java.lang.Thread.run(Thread.java:662)

IRCd server tunnel

Subtickets

Change History (2)

comment:1 Changed 8 years ago by zzz

Owner: set to zzz
Status: newaccepted

probably have to check for empty string first

comment:2 Changed 8 years ago by zzz

Resolution: fixed
Status: acceptedclosed

thx for the report. Fixed in 0.8.11-13.

Note: See TracTickets for help on using tickets.