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

Downstream A JSON::ParserError occurred while parsing broken JSON (UTF-8) #848

Closed
PeterMozesMerl opened this issue Oct 29, 2017 · 1 comment

Comments

@PeterMozesMerl
Copy link

Would you please look at it?

minimagick/minimagick#423 (comment)

Prerequisites

  • A broken jpeg file that can be displayed in browsers and opened in image editing applications
  • ImageMagick
  • Ruby
  • MiniMagick gem

Description

Invalid UTF-8 sequence in the image metadata prevents the JSON parser from working

Steps to Reproduce

Open the broken image file with MiniMagick and try to access the image.data

System Configuration

Version: ImageMagick 6.9.9-19 Q16 x86_64 2017-10-12 http://www.imagemagick.org

mini_magick (4.8.0)

ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-darwin17]

MacOS and FreeBSD (and probably the rest)

@urban-warrior
Copy link
Member

Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ https://www.imagemagick.org/download/beta/ by sometime tomorrow.

netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this issue Nov 13, 2017
Upstream changes:

2017-11-11  7.0.7-11 Cristy  <quetzlzacatenango@image...>
  * Release ImageMagick version 7.0.7-11, GIT revision 21635:0447c6b46:20171111.

2017-11-05  7.0.7-10 Cristy  <quetzlzacatenango@image...>
  * Release ImageMagick version 7.0.7-10, GIT revision 21612:36e2aabfd:20171105.

2017-11-03  7.0.7-10 Dirk Lemstra <dirk@lem.....org>
  * Fixed a problem with resource bookkeeping in AcquireMatrixInfo().

2017-10-30  7.0.7-9 Cristy  <quetzlzacatenango@image...>
  * Release ImageMagick version 7.0.7-9, GIT revision 21580:2682a311e:20171031.

2017-10-20  7.0.7-9 Cristy  <quetzlzacatenango@image...>
  * Encode JSON control characters (reference
    ImageMagick/ImageMagick#848).

2017-10-27  7.0.7-9 Dirk Lemstra <dirk@lem.....org>
  * Added support for reading mipmaps in dds images (reference
    ImageMagick/ImageMagick#845).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants