Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

com.yalantis.ucrop.util.ImageHeaderParser$RandomAccessReader.getInt16 #906

Open
AkshayOptimumbrew opened this issue Mar 18, 2024 · 0 comments

Comments

@AkshayOptimumbrew
Copy link

AkshayOptimumbrew commented Mar 18, 2024

Issue: java.lang.IndexOutOfBoundsException - index=18767 out of bounds (limit=192, nb=2)
File Name: ImageHeaderParser.java:315

Ucrop Version : 2.2.8
Android OS[Where this crash is reported] : 10
Android Model Name: Huawei P Smart 2019

Attached Screenshot:
image

Stack Trace:
Caused by java.lang.IndexOutOfBoundsException: index=18767 out of bounds (limit=192, nb=2)
at java.nio.Buffer.checkIndex(Buffer.java:564)
at java.nio.HeapByteBuffer.getShort(HeapByteBuffer.java:263)
at com.yalantis.ucrop.util.ImageHeaderParser$RandomAccessReader.getInt16(ImageHeaderParser.java:315)
at com.yalantis.ucrop.util.ImageHeaderParser.parseExifSegment(ImageHeaderParser.java:215)
at com.yalantis.ucrop.util.ImageHeaderParser.parseExifSegment(ImageHeaderParser.java:126)
at com.yalantis.ucrop.util.ImageHeaderParser.getOrientation(ImageHeaderParser.java:109)
at com.yalantis.ucrop.util.BitmapLoadUtils.getExifOrientation(BitmapLoadUtils.java:79)
at com.yalantis.ucrop.task.BitmapLoadTask.doInBackground(BitmapLoadTask.java:131)
at com.yalantis.ucrop.task.BitmapLoadTask.doInBackground(BitmapLoadTask.java:36)
at android.os.AsyncTask$3.call(AsyncTask.java:378)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.processTask(ThreadPoolExecutor.java:1187)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:929)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant