Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A326088F8 for ; Sat, 3 Sep 2011 15:08:33 +0000 (UTC) Received: (qmail 8397 invoked by uid 500); 3 Sep 2011 15:08:33 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 8095 invoked by uid 500); 3 Sep 2011 15:08:32 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 8084 invoked by uid 99); 3 Sep 2011 15:08:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Sep 2011 15:08:31 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Sep 2011 15:08:30 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 0374A4D979 for ; Sat, 3 Sep 2011 15:08:10 +0000 (UTC) Date: Sat, 3 Sep 2011 15:08:10 +0000 (UTC) From: "Oleg Kalnichevski (JIRA)" To: dev@hc.apache.org Message-ID: <364445939.14779.1315062490011.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1342688647.1626.1309896376664.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HTTPCORE-263) IndexOutOfBoundsException thrown in AbstractSessionInputBuffer.readLine() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HTTPCORE-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13096668#comment-13096668 ] Oleg Kalnichevski commented on HTTPCORE-263: -------------------------------------------- Michael If you are still seeing this exception _without_ Proguard obfuscation please re-open the issue and attach the exception stack trace. Oleg > IndexOutOfBoundsException thrown in AbstractSessionInputBuffer.readLine() > ------------------------------------------------------------------------- > > Key: HTTPCORE-263 > URL: https://issues.apache.org/jira/browse/HTTPCORE-263 > Project: HttpComponents HttpCore > Issue Type: Bug > Components: HttpCore > Affects Versions: 4.1.1 > Environment: reported on Android 2.3.3 using repackaged httpcore 4.1.1, optimized and obfuscated with Proguard > Reporter: Michael Pujos > Priority: Minor > > I've got the exception below reported in my Android app using (repackaged) httpcore 4.1.1: > java.lang.IndexOutOfBoundsException: off: 1088 len: -1 b.length: 8192 > at org.apache.http.util.CharArrayBuffer.append(SourceFile:185) > at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(SourceFile:251) > at org.apache.http.impl.io.HttpRequestParser.parseHead(SourceFile:90) > at org.apache.http.impl.io.AbstractMessageParser.parseHead(SourceFile:252) > parse > at org.apache.http.impl.AbstractHttpServerConnection.receiveRequestHeader(SourceFile:242) > at org.apache.http.protocol.HttpService.handleRequest(SourceFile:238) > at org.teleal.cling.transport.impl.apache.HttpServerConnectionUpnpStream.run(SourceFile:116) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581) > at java.lang.Thread.run(Thread.java:1019) > It seems to be very rare. Stack trace line number (185) in AbstractSessionInputBuffer doesn't exaclty match the exact line number of the offending append() call (probably due to Proguard). > However, there are 2 append() calls in readLine(), and it looks like one of them is called with len = -1, triggering the IndexOutOfBoundsException in append() -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org