java.lang.ArrayIndexOutOfBoundsException

Open
#175 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
20/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
android, java
Domain
mobile

Research direction

Start by reproducing the reported failure with release 1.0.6, beginning at org.piwik.sdk.dispatcher.Dispatcher.dispatch and following the stack into com.android.okhttp.internal.Platform.configureTlsExtensions and Buffer.writeUtf8. Done means determining the input that reaches index 8192 and verifying that the resulting ArrayIndexOutOfBoundsException no longer occurs.

Written by the indexing model from the issue text.

Description

Use release 1.0.6

com.android.okhttp.okio.Buffer.writeUtf8(Buffer.java:818) java.lang.ArrayIndexOutOfBoundsException: length=8192; index=8192
at com.android.okhttp.okio.Buffer.writeByte(Buffer.java:973)
at com.android.okhttp.internal.Platform.concatLengthPrefixed(Platform.java:130)
at com.android.okhttp.internal.Platform.configureTlsExtensions(Platform.java:84)
at com.android.okhttp.Connection.connectTls(Connection.java:230)
at com.android.okhttp.Connection.connectSocket(Connection.java:199)
at com.android.okhttp.Connection.connect(Connection.java:172)
at com.android.okhttp.Connection.connectAndSetOwner(Connection.java:367)
at com.android.okhttp.OkHttpClient$1.connectAndSetOwner(OkHttpClient.java:130)
at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:329)
at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:246)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:457)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:126)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:257)
at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getOutputStream(DelegatingHttpsURLConnection.java:218)
at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java)
at org.piwik.sdk.dispatcher.Dispatcher.dispatch(Dispatcher.java)
at org.piwik.sdk.dispatcher.Dispatcher$1.run(Dispatcher.java)
at java.lang.Thread.run(Thread.java:776)
Dominant language
Java
Stars
1.7k
Forks
334
Avg merge
1d 2h
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from voghDev/PdfViewPager

All issues in voghDev/PdfViewPager

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.