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

Failed tests with 6.9.8-7 and 7.0.5-8 (openjpeg2) #501

Closed
remicollet opened this issue May 28, 2017 · 5 comments
Closed

Failed tests with 6.9.8-7 and 7.0.5-8 (openjpeg2) #501

remicollet opened this issue May 28, 2017 · 5 comments
Labels

Comments

@remicollet
Copy link
Contributor

FAIL: tests/validate-formats-disk.tap 1
FAIL: tests/validate-formats-memory.tap 1
FAIL: tests/validate-formats-map.tap 1

./tests/validate-formats-memory.log

1..1
Version: ImageMagick 6.9.8-7 Q16 x86_64 2017-05-28 http://www.imagemagick.org
Copyright: © 1999-2017 ImageMagick Studio LLC

ImageMagick Validation Suite (FormatsMemory)

[pixel-cache: memory] validate image formats in memory:
  ...
  test 221: JBG/Undefined/TrueColor/8-bits... pass
lt-validate: irregular channel geometry not supported `/tmp/magick-31699XDQmLaCIcCy3' @ error/jp2.c/ReadJP2Image/400.
lt-validate: irregular channel geometry not supported `/tmp/magick-31699XDQmLaCIcCy3' @ error/jp2.c/ReadJP2Image/400.
lt-validate: irregular channel geometry not supported `/tmp/magick-31699XDQmLaCIcCy3' @ error/jp2.c/ReadJP2Image/400.
lt-validate: irregular channel geometry not supported `/tmp/magick-31699XDQmLaCIcCy3' @ error/jp2.c/ReadJP2Image/400.
lt-validate: irregular channel geometry not supported `/tmp/magick-31699XDQmLaCIcCy3' @ error/jp2.c/ReadJP2Image/400.
lt-validate: irregular channel geometry not supported `/tmp/magick-31699XDQmLaCIcCy3' @ error/jp2.c/ReadJP2Image/400.
lt-validate: irregular channel geometry not supported `/tmp/magick-31699XDQmLaCIcCy3' @ error/jp2.c/ReadJP2Image/400.
lt-validate: irregular channel geometry not supported `/tmp/magick-31699XDQmLaCIcCy3' @ error/jp2.c/ReadJP2Image/400.
lt-validate: irregular channel geometry not supported `/tmp/magick-31699XDQmLaCIcCy3' @ error/jp2.c/ReadJP2Image/400.
lt-validate: irregular channel geometry not supported `/tmp/magick-31699XDQmLaCIcCy3' @ error/jp2.c/ReadJP2Image/400.
lt-validate: irregular channel geometry not supported `/tmp/magick-31699XDQmLaCIcCy3' @ error/jp2.c/ReadJP2Image/400.
lt-validate: irregular channel geometry not supported `/tmp/magick-31699XDQmLaCIcCy3' @ error/jp2.c/ReadJP2Image/400.
lt-validate: irregular channel geometry not supported `/tmp/magick-31699XDQmLaCIcCy3' @ error/jp2.c/ReadJP2Image/400.
lt-validate: irregular channel geometry not supported `/tmp/magick-31699XDQmLaCIcCy3' @ error/jp2.c/ReadJP2Image/400.
lt-validate: irregular channel geometry not supported `/tmp/magick-31699XDQmLaCIcCy3' @ error/jp2.c/ReadJP2Image/400.
lt-validate: irregular channel geometry not supported `/tmp/magick-31699XDQmLaCIcCy3' @ error/jp2.c/ReadJP2Image/400.
lt-validate: irregular channel geometry not supported `/tmp/magick-31699XDQmLaCIcCy3' @ error/jp2.c/ReadJP2Image/400.
lt-validate: irregular channel geometry not supported `/tmp/magick-31699XDQmLaCIcCy3' @ error/jp2.c/ReadJP2Image/400.
lt-validate: irregular channel geometry not supported `/tmp/magick-31699XDQmLaCIcCy3' @ error/jp2.c/ReadJP2Image/400.
lt-validate: irregular channel geometry not supported `/tmp/magick-31699XDQmLaCIcCy3' @ error/jp2.c/ReadJP2Image/400.
  test 222: JBG/Undefined/TrueColorAlpha/8-bits... pass
  ...
  test 259: JNG/JPEG/TrueColor/16-bits... pass
  test 260: JP2/Undefined/TrueColor/8-bits... fail @ tests/validate.c/ValidateImageFormatsInMemory/1443.
  test 261: JP2/Undefined/TrueColorAlpha/8-bits... fail @ tests/validate.c/ValidateImageFormatsInMemory/1443.
  test 262: JP2/Undefined/Grayscale/8-bits... fail @ tests/validate.c/ValidateImageFormatsInMemory/1443.
  test 263: JP2/Undefined/GrayscaleAlpha/8-bits... fail @ tests/validate.c/ValidateImageFormatsInMemory/1443.
  test 264: JP2/Undefined/Palette/8-bits... fail @ tests/validate.c/ValidateImageFormatsInMemory/1443.
  test 265: JP2/Undefined/PaletteAlpha/8-bits... fail @ tests/validate.c/ValidateImageFormatsInMemory/1443.
  test 266: JP2/Undefined/PaletteBilevelAlpha/8-bits... fail @ tests/validate.c/ValidateImageFormatsInMemory/1443.
  test 267: JP2/Undefined/Bilevel/1-bits... fail @ tests/validate.c/ValidateImageFormatsInMemory/1443.
  test 268: JP2/Undefined/ColorSeparation/8-bits... fail @ tests/validate.c/ValidateImageFormatsInMemory/1443.
  test 269: JP2/Undefined/ColorSeparationAlpha/8-bits... fail @ tests/validate.c/ValidateImageFormatsInMemory/1443.
  test 270: JP2/Undefined/TrueColor/10-bits... fail @ tests/validate.c/ValidateImageFormatsInMemory/1443.
  test 271: JP2/Undefined/TrueColor/12-bits... fail @ tests/validate.c/ValidateImageFormatsInMemory/1443.
  test 272: JP2/Undefined/TrueColor/16-bits... fail @ tests/validate.c/ValidateImageFormatsInMemory/1443.
  test 273: J2K/Undefined/TrueColor/8-bits... fail @ tests/validate.c/ValidateImageFormatsInMemory/1443.
  test 274: J2K/Undefined/TrueColorAlpha/8-bits... fail @ tests/validate.c/ValidateImageFormatsInMemory/1443.
  test 275: J2K/Undefined/Grayscale/8-bits... fail @ tests/validate.c/ValidateImageFormatsInMemory/1443.
  test 276: J2K/Undefined/GrayscaleAlpha/8-bits... fail @ tests/validate.c/ValidateImageFormatsInMemory/1443.
  test 277: J2K/Undefined/Palette/8-bits... fail @ tests/validate.c/ValidateImageFormatsInMemory/1443.
  test 278: J2K/Undefined/PaletteAlpha/8-bits... fail @ tests/validate.c/ValidateImageFormatsInMemory/1443.
lt-validate: irregular channel geometry not supported `/tmp/magick-31699XDQmLaCIcCy3' @ error/jp2.c/ReadJP2Image/400.
lt-validate: irregular channel geometry not supported `/tmp/magick-31699XDQmLaCIcCy3' @ error/jp2.c/ReadJP2Image/400.
lt-validate: irregular channel geometry not supported `/tmp/magick-31699XDQmLaCIcCy3' @ error/jp2.c/ReadJP2Image/400.
lt-validate: irregular channel geometry not supported `/tmp/magick-31699XDQmLaCIcCy3' @ error/jp2.c/ReadJP2Image/400.
lt-validate: irregular channel geometry not supported `/tmp/magick-31699XDQmLaCIcCy3' @ error/jp2.c/ReadJP2Image/400.
lt-validate: irregular channel geometry not supported `/tmp/magick-31699XDQmLaCIcCy3' @ error/jp2.c/ReadJP2Image/400.
  test 279: J2K/Undefined/PaletteBilevelAlpha/8-bits... fail @ tests/validate.c/ValidateImageFormatsInMemory/1443.
  test 280: J2K/Undefined/Bilevel/1-bits... fail @ tests/validate.c/ValidateImageFormatsInMemory/1443.
  test 281: J2K/Undefined/ColorSeparation/8-bits... fail @ tests/validate.c/ValidateImageFormatsInMemory/1443.
  test 282: J2K/Undefined/ColorSeparationAlpha/8-bits... fail @ tests/validate.c/ValidateImageFormatsInMemory/1443.
  test 283: J2K/Undefined/TrueColor/10-bits... fail @ tests/validate.c/ValidateImageFormatsInMemory/1443.
  test 284: J2K/Undefined/TrueColor/12-bits... fail @ tests/validate.c/ValidateImageFormatsInMemory/1443.
  test 285: J2K/Undefined/TrueColor/16-bits... fail @ tests/validate.c/ValidateImageFormatsInMemory/1443.
  test 286: JPEG/Undefined/TrueColor/8-bits... pass
  ...
  test 1117: PS/Undefined/TrueColor/16-bits... pass.
  summary: 1118 subtests; 1092 passed; 26 failed.
validation suite: 2236 tests; 2210 passed; 26 failed.
not ok
FAIL: tests/validate-formats-memory.tap 1
@remicollet
Copy link
Contributor Author

Notice, as related to JP2, build with --with-openjp2 fails, while build with --without-openjp2 passes.

@remicollet remicollet changed the title Failed tests with 6.9.8-7 and 7.0.5-8 Failed tests with 6.9.8-7 and 7.0.5-8 (openjpeg2) May 28, 2017
@remicollet
Copy link
Contributor Author

Could be related to c90d59f or 7286973

BTW, golden award for useful commit message ;)

@mikayla-grace
Copy link

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 @ http://www.imagemagick.org/download/beta/ by sometime tomorrow.

@remicollet
Copy link
Contributor Author

I confirm fix is ok (tested on 7.0.5-8 + f13c6b5)

Thanks

@dlemstra dlemstra added the bug label May 28, 2017
jsonn pushed a commit to jsonn/pkgsrc that referenced this issue May 29, 2017
2017-05-28  7.0.5-9 Cristy  <quetzlzacatenango@image...>
  * Release ImageMagick version 7.0.5-9, GIT revision 20113:8b67333:20170528.

2017-05-28  7.0.5-9 Cristy  <quetzlzacatenango@image...>
  * Transient error validating the JPEG-2000 image format (reference
    ImageMagick/ImageMagick#501).
  * Properly allocate DCM image colormap (reference
    https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=32063).

2017-05-26  7.0.5-8 Cristy  <quetzlzacatenango@image...>
  * Release ImageMagick version 7.0.5-8, GIT revision 20099:870a016:20170526.

2017-05-23  7.0.5-8 Cristy  <quetzlzacatenango@image...>
  * Improper allocation of memory for IM instances without threads (reference
    ImageMagick/ImageMagick#497).
  * Delete corrupt image from list (reference
    ImageMagick/ImageMagick#500).

2017-05-19  7.0.5-7 Cristy  <quetzlzacatenango@image...>
  * Release ImageMagick version 7.0.5-7, GIT revision 20078:7ce2d38:20170519.

2017-05-15  7.0.5-7 Cristy  <quetzlzacatenango@image...>
  * Support various image operators for the compare utility (reference
    https://www.imagemagick.org/discourse-server/viewtopic.php?f=2&t=31938).
netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this issue Jun 14, 2017
Upstream changes:

2017-06-10  6.9.8-10 Cristy  <quetzlzacatenango@image...>
  * Release ImageMagick version 6.9.8-10, GIT revision 11637:eb6f363:20170610.

2017-06-10  6.9.8-10 Cristy  <quetzlzacatenango@image...>
  * Introduce SetMagickSecurityPolicy() (MagickCore) and
    MagickSetSecurityPolicy() (MagickWand) to set the ImageMagick security
    policy (reference ImageMagick/ImageMagick#407).

2017-06-02  6.9.8-9 Cristy  <quetzlzacatenango@image...>
  * Release ImageMagick version 6.9.8-9, GIT revision 11625:91bb35e:20170602.

2017-06-02  6.9.8-9 Cristy  <quetzlzacatenango@image...>
  * Fix choppy bitmap font rendering (reference
    https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=32071).
  * Add support for 'hex:' property.

2017-05-28  6.9.8-8 Cristy  <quetzlzacatenango@image...>
  * Release ImageMagick version 6.9.8-8, GIT revision 11606:8b67333:20170528.

2017-05-28  6.9.8-8 Cristy  <quetzlzacatenango@image...>
  * Transient error validating the JPEG-2000 image format (reference
    ImageMagick/ImageMagick#501).
  * Properly allocate DCM image colormap (reference
    https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=32063).

2017-05-26  6.9.8-7 Cristy  <quetzlzacatenango@image...>
  * Release ImageMagick version 6.9.8-7, GIT revision 11598:07d1dee:20170526.

2017-05-23  6.9.8-7 Cristy  <quetzlzacatenango@image...>
  * Improper allocation of memory for IM instances without threads (reference
          ImageMagick/ImageMagick#497).
  * Delete corrupt image from list (reference
    ImageMagick/ImageMagick#500).

2017-05-19  6.9.8-6 Cristy  <quetzlzacatenango@image...>
  * Release ImageMagick version 6.9.8-6, GIT revision 11590:7ce2d38:20170519.

2017-05-15  6.9.8-6 Cristy  <quetzlzacatenango@image...>
  * Support various image operators for the compare utility (reference
    https://www.imagemagick.org/discourse-server/viewtopic.php?f=2&t=31938).
jsonn pushed a commit to jsonn/pkgsrc that referenced this issue Jun 14, 2017
Upstream changes:

2017-06-10  6.9.8-10 Cristy  <quetzlzacatenango@image...>
  * Release ImageMagick version 6.9.8-10, GIT revision 11637:eb6f363:20170610.

2017-06-10  6.9.8-10 Cristy  <quetzlzacatenango@image...>
  * Introduce SetMagickSecurityPolicy() (MagickCore) and
    MagickSetSecurityPolicy() (MagickWand) to set the ImageMagick security
    policy (reference ImageMagick/ImageMagick#407).

2017-06-02  6.9.8-9 Cristy  <quetzlzacatenango@image...>
  * Release ImageMagick version 6.9.8-9, GIT revision 11625:91bb35e:20170602.

2017-06-02  6.9.8-9 Cristy  <quetzlzacatenango@image...>
  * Fix choppy bitmap font rendering (reference
    https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=32071).
  * Add support for 'hex:' property.

2017-05-28  6.9.8-8 Cristy  <quetzlzacatenango@image...>
  * Release ImageMagick version 6.9.8-8, GIT revision 11606:8b67333:20170528.

2017-05-28  6.9.8-8 Cristy  <quetzlzacatenango@image...>
  * Transient error validating the JPEG-2000 image format (reference
    ImageMagick/ImageMagick#501).
  * Properly allocate DCM image colormap (reference
    https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=32063).

2017-05-26  6.9.8-7 Cristy  <quetzlzacatenango@image...>
  * Release ImageMagick version 6.9.8-7, GIT revision 11598:07d1dee:20170526.

2017-05-23  6.9.8-7 Cristy  <quetzlzacatenango@image...>
  * Improper allocation of memory for IM instances without threads (reference
          ImageMagick/ImageMagick#497).
  * Delete corrupt image from list (reference
    ImageMagick/ImageMagick#500).

2017-05-19  6.9.8-6 Cristy  <quetzlzacatenango@image...>
  * Release ImageMagick version 6.9.8-6, GIT revision 11590:7ce2d38:20170519.

2017-05-15  6.9.8-6 Cristy  <quetzlzacatenango@image...>
  * Support various image operators for the compare utility (reference
    https://www.imagemagick.org/discourse-server/viewtopic.php?f=2&t=31938).
@fgeek
Copy link

fgeek commented Aug 23, 2017

Please use CVE-2017-13145 for this issue.

joebonrichie pushed a commit to solus-packages/imagemagick that referenced this issue Aug 14, 2023
Summary:
- Transient error validating the JPEG-2000 image format ([reference](ImageMagick/ImageMagick#501))
- Properly allocate DCM image colormap ([reference](https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=32063))

Signed-off-by: Pierre-Yves <pyu@riseup.net>

Test Plan: played a little with `compare`, `convert` and `mogrify`

Reviewers: #triage_team, JoshStrobl

Reviewed By: #triage_team, JoshStrobl

Subscribers: kyrios123

Differential Revision: https://dev.solus-project.com/D252
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

4 participants