ImageMagick-6.9.0-3差分

ImageMagick-6.9.0-2差分 - yoyaのメモの続き

The latest release of ImageMagick is version 6.9.0-3

まとめ

HDRI 有効だとビルドできなくなってたので修正したのと、Raw プロファイルの tEXt キーワードの後ろは読まないようにした。

差分

  • HDRI を有効にした時のビルド。

http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=26803
coders/palm.c:513:53: error: invalid operands to binary expression ('PixelPacket *' (aka 'struct _PixelPacket *')
and 'IndexPacket' (aka 'float'))
SetMagickPixelPacket(image,image->colormap+index,
~~~~~~~~~~~~~~~^~~~~~
1 error generated.

  • Raw プロファイルをチェックする時に tEXt キーワードの後ろを読まないようにした
ChangeLogにない差分
  • coders/dds.c
<   max = Min(min + steps, 255); \
---
>   max = MagickMin(min + steps, 255); \
< #if JPEG_LIB_VERSION < 80
---
> #if (JPEG_LIB_VERSION < 80) && !defined(LIBJPEG_TURBO_VERSION)
  • coders/meta.c
<           (void) strcpy(s+1,s+1+o);
---
>           (void) memmove(s+1,s+1+o,strlen(s+1+o)+1);
  • coders/pcx.c
<     palette_info;
---
>     palette_info,
>     horizontal_screensize,
>     vertical_screensize;
<     if ((count == 0) || (pcx_info.identifier != 0x0a))
---
>     if ((count != 1) || (pcx_info.identifier != 0x0a))
340c342,345
<         (pcx_info.bits_per_pixel == 0))
---
>         ((pcx_info.bits_per_pixel != 1) &&
>          (pcx_info.bits_per_pixel != 2) &&
>          (pcx_info.bits_per_pixel != 4) &&
>          (pcx_info.bits_per_pixel != 8)))
342c347
<     image->depth=pcx_info.bits_per_pixel <= 8 ? 8U : MAGICKCORE_QUANTUM_DEPTH;
---
>     image->depth=pcx_info.bits_per_pixel;
  • coders/xpm.c
<   while (--length && (*p != '\0'))
---
>   while (length-- && (*p != '\0'))
162a163
>   if (length != 0)
  • magick/nt-base.c
2673c2673
<       (void *) RelinquishMagickMemory((void *) wsaData);
---
>       wsaData=(WSADATA *) RelinquishMagickMemory((void *) wsaData);
diff -rbw ImageMagick-6.9.0-2/magick/property.c ImageMagick-6.9.0-3/magick/property.c
  • magick/resource.c

> (void) SetMagickResourceLimit(WidthResource,resource_info.width_limit);
1112a1103
> (void) SetMagickResourceLimit(HeightResource,resource_info.width_limit);

HeightResource に width_limit 入れて大丈夫なのかな。。

ChangeLog

2014-01-01  6.9.0-3 Cristy  <quetzlzacatenango@image...>
  * New version 6.9.0-2, SVN revision 17537.

2015-01-01  6.9.0-3 Cristy  <quetzlzacatenango@image...>
  * ImageMagick builds when HDRI is enabled (reference
    http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=26803).

2014-12-31  6.9.0-3 Glenn Randers-Pehrson <glennrp@image...>
  * Don't read beyond the end of a tEXt keyword when checking for Raw profile.