RadaeePDF.com :: Topic: ArrayIndexOutOfBoundsException in PDFMemSream (1/2)
Welcome, Guest
Username: Password: Remember me

Signin/Signup with:

Here you should submit your bug reports with logcat.
  • Page:
  • 1
  • 2

TOPIC: ArrayIndexOutOfBoundsException in PDFMemSream

ArrayIndexOutOfBoundsException​ in PDFMemSream 1 year 4 months ago #10803

  • Ilieski
  • Ilieski's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 1
There is ArrayIndexOutOfBoundsException error in PDFMemSream read function. The problem is when m_pos is < 0 and you try to call System.arraycopy(m_data, m_pos, data, 0, len ); with (m_pos < 0).

Stack Trace:
JNI DETECTED ERROR IN APPLICATION: JNI GetByteArrayRegion called with pending exception java.lang.ArrayIndexOutOfBoundsException: src.length=1164 srcPos=-884 dst.length=2000 dstPos=0 length=2000
at void java.lang.System.arraycopy!(java.lang.Object, int, java.lang.Object, int, int) (System.java:-2)
at int com.radaee.util.PDFMemStream.read(byte[]) (PDFMemStream.java:45)
at long com.radaee.pdf.Document.openStream(com.radaee.pdf.Document$PDFStream, java.lang.String) (Document.java:-2)
at int com.radaee.pdf.Document.OpenStream(com.radaee.pdf.Document$PDFStream, java.lang.String) (Document.java:739)
at void .pdf.PDFReaderFragment.onViewCreatedExceptionSafe(android.view.View, android.os.Bundle) (PDFReaderFragment.java:128)
at void .base.exception_handling.ExceptionSafeFragment.onViewCreated(android.view.View, android.os.Bundle) (ExceptionSafeFragment.java:94)
at void android.support.v4.app.FragmentManagerImpl.moveToState(android.support.v4.app.Fragment, int, int, int, boolean) (FragmentManager.java:1086)
at void android.support.v4.app.FragmentManagerImpl.moveToState(int, int, int, boolean) (FragmentManager.java:1248)
at void android.support.v4.app.BackStackRecord.run() (BackStackRecord.java:738)
at boolean android.support.v4.app.FragmentManagerImpl.execPendingActions() (FragmentManager.java:1613)
at void android.support.v4.app.FragmentManagerImpl$1.run() (FragmentManager.java:517)
at void android.os.Handler.handleCallback(android.os.Message) (Handler.java:751)
at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:95)
at void android.os.Looper.loop() (Looper.java:154)
at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:5969)
at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:801)
at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:691)
Last Edit: 1 year 4 months ago by Ilieski.
The administrator has disabled public write access.

ArrayIndexOutOfBoundsException​ in PDFMemSream 1 year 4 months ago #10807

  • Davide
  • Davide's Avatar
  • OFFLINE
  • Moderator
  • Posts: 699
  • Thank you received: 53
  • Karma: 15
Hi,
our developers have fixed it, we will include it in the next beta release of the library.

If you want it now, please open a ticket here : www.radaeepdf.com/support/tickets
The administrator has disabled public write access.

ArrayIndexOutOfBoundsException​ in PDFMemSream 1 year 4 months ago #10811

  • Davide
  • Davide's Avatar
  • OFFLINE
  • Moderator
  • Posts: 699
  • Thank you received: 53
  • Karma: 15
Hi,
we have just published a new beta version that fixes the issue.
You can download it here : www.radaeepdf.com/download/download-prev...le/59-radaeepdf-37b2
The administrator has disabled public write access.

ArrayIndexOutOfBoundsException​ in PDFMemSream 1 year 4 months ago #10812

  • Ilieski
  • Ilieski's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 1
Hello,
Can you please tell me when you are planing to release the final version of 3.7 ?

Regards,
Ivan
The administrator has disabled public write access.

ArrayIndexOutOfBoundsException​ in PDFMemSream 1 year 4 months ago #10814

  • Davide
  • Davide's Avatar
  • OFFLINE
  • Moderator
  • Posts: 699
  • Thank you received: 53
  • Karma: 15
Hi,
if there won't be any particular things, usually a beta is scaled stable in 10/15 days after 2 or 3 beta.
The administrator has disabled public write access.

ArrayIndexOutOfBoundsException​ in PDFMemSream 1 year 4 months ago #10820

  • Ilieski
  • Ilieski's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 1
Hi,

We are in very late phase of our project, and this issue is of very big importance for us.
Can you please let us know what was the real problem, and why we were not able to reproduce this issue before?
We would like to do risk assessment and for that we need your answer on this.

Regards, Ivan
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Powered by Kunena Forum