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

readJpegSegments throws java.lang.NegativeArraySizeException #242

Closed
chenlingmin opened this issue Feb 14, 2017 · 5 comments
Closed

readJpegSegments throws java.lang.NegativeArraySizeException #242

chenlingmin opened this issue Feb 14, 2017 · 5 comments

Comments

@chenlingmin
Copy link

Exception in thread "main" java.lang.NegativeArraySizeException
	at com.drew.metadata.jpeg.JpegDhtReader.getBytes(JpegDhtReader.java:88)
	at com.drew.metadata.jpeg.JpegDhtReader.extract(JpegDhtReader.java:77)
	at com.drew.metadata.jpeg.JpegDhtReader.readJpegSegments(JpegDhtReader.java:50)
	at com.drew.imaging.jpeg.JpegMetadataReader.processJpegSegmentData(JpegMetadataReader.java:134)
	at com.drew.imaging.jpeg.JpegMetadataReader.process(JpegMetadataReader.java:126)
	at com.drew.imaging.jpeg.JpegMetadataReader.readMetadata(JpegMetadataReader.java:77)
	at com.drew.imaging.jpeg.JpegMetadataReader.readMetadata(JpegMetadataReader.java:84)
	at com.drew.imaging.ImageMetadataReader.readMetadata(ImageMetadataReader.java:111)
	at com.drew.imaging.ImageMetadataReader.readMetadata(ImageMetadataReader.java:89)
@drewnoakes
Copy link
Owner

Can you attach an image that reproduces this issue?

@Nadahar does this error mean anything to you?

@Nadahar
Copy link
Contributor

Nadahar commented Feb 14, 2017

@drewnoakes It seems like another signed-byte bug by me. It should be easy to fix, but a test image would be nice to have to verify.

@chenlingmin
Copy link
Author

738060981191472375
This is a photo of compressed.

@drewnoakes
Copy link
Owner

Fixed in 2.10.1 thanks to @Nadahar in #243.

@drewnoakes
Copy link
Owner

@chenlingmin thanks for the bug report by the way :)

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

3 participants