yoyaのメモ

2017/08/20(Sun) ImageMagick-6.9.9-8差分

[]ImageMagick-6.9.9-8差分

yoyaのメモの続き

The latest release of ImageMagick is version 6.9.9-8

まとめ

差分

ChangeLogにない差分

ChangeLog

2017-08-18  6.9.9-8 Cristy  <quetzlzacatenango@image...>
  * Release ImageMagick version 6.9.9-8, GIT revision 11906:26078285f:20170818.

2017-08-18  6.9.9-8 Cristy  <quetzlzacatenango@image...>
  * Fixed numerous memory leaks (reference
    https://github.com/ImageMagick/ImageMagick/issues).

2017/08/11(Fri) ImageMagick-6.9.9-6差分

[]ImageMagick-6.9.9-6差分

ImageMagick-6.9.9-5差分 - yoyaのメモの続き

The latest release of ImageMagick is version 6.9.9-6

まとめ

  • PNG tIME チャンク修正。UTC タイムを入れるとこにローカルタイムを入れてた。
  • test 改善

差分

  • 可能な場合に、失敗した理由をテストログの中で示す
>   if (date == (const char *) NULL)
>     timestamp=GetImageProperty(image,"date:modify");
>   else
>     timestamp=date;
7938,7941c7948,7956
<   if (date != (const char *) NULL)
<     {
<       if (sscanf(date,"%d-%d-%dT%d:%d:%dZ",&year,&month,&day,&hour,&minute,
<           &second) != 6)
---
>   LogMagickEvent(CoderEvent,GetMagickModule(),
>       "  Writing tIME chunk: timestamp property is %30s\n",timestamp);
>   ret=sscanf(timestamp,"%d-%d-%dT%d:%d:%d",&year,&month,&day,&hour,
>       &minute, &second);
>   addhours=0;
>   addminutes=0;
>   ret=sscanf(timestamp,"%d-%d-%dT%d:%d:%d%d:%d",&year,&month,&day,&hour,
>       &minute, &second, &addhours, &addminutes);
>   if (ret < 6)
7944,7945c7959
<             CoderError,
<             "Invalid date format specified for png:tIME","`%s'",
---
>         CoderError, "Invalid date format specified for png:tIME","`%s'",
7952,7953c7966,7967
<       ptime.hour=(png_byte) hour;
<       ptime.minute=(png_byte) minute;
---
>   ptime.hour=(png_byte) hour+addhours;
>   ptime.minute=(png_byte) minute+addminutes;
7954a7969,7972
>   if (ptime.minute > 60)
>   {
>      ptime.hour++;
>      ptime.minute-=60;
7956c7974,7982
<   else
---
>   if (ptime.hour > 24)
>   {
>      ptime.day ++;
>      ptime.hour -=24;
>   }
>   /* To do: fix this for leap years */
>   if (ptime.day > 31 || (ptime.month == 2 && ptime.day > 28) ||
>       ((ptime.month == 4 || ptime.month == 6 || ptime.month == 9 ||
>       ptime.month == 11) && ptime.day > 30))
7958,7959c7984,7990
<     time(&ttime);
<     png_convert_from_time_t(&ptime,ttime);
---
>      ptime.month++;
>      ptime.day = 1;
>   }
>   if (ptime.month > 12)
>   {
>      ptime.year++;
>      ptime.month=1;
12453a12485,12486
>         {
>           jpeg_image_info=DestroyImageInfo(jpeg_image_info);
12454a12488
>         }

ChangeLogにない差分
954a955,956
>     if (length > GetBlobSize(image))
>       ThrowReaderException(CorruptImageError,"InsufficientImageDataInFile");
diff -rwb ImageMagick-6.9.9-5/coders/dds.c ImageMagick-6.9.9-6/coders/dds.c
1913a1914,1915
>       if (EOFBlob(image) != MagickFalse)
>         break;
<同様のが沢山>
  • coders/mat.c
973c973,977
<     if(MATLAB_HDR.DataType!=miMATRIX) continue;  /* skip another objects. */
---
>     if (MATLAB_HDR.DataType!=miMATRIX)
>       {
>         clone_info=DestroyImageInfo(clone_info);
>         continue;  /* skip another objects. */
>       }
1146a1151,1152
>         if ((image != image2) && (image2 != (Image *) NULL))
>           image2=DestroyImage(image2);
1332,1333d1337
<   if (clone_info)
<     clone_info=DestroyImageInfo(clone_info);
1350a1355,1356
>           if (tmp == image2)
>             image2=(Image *) NULL;
1016a1017,1018
>         if (page_table != (MagickOffsetType *) NULL)
>           page_table=(MagickOffsetType *) RelinquishMagickMemory(page_table);
1103,1104c1105,1106
<                 status=SetImageProgress(image,SaveImageTag,(MagickOffsetType)
y,
<                 image->rows);
---
>                 status=SetImageProgress(image,SaveImageTag,(MagickOffsetType)
>                   y,image->rows);
1178a1181,1182
>         {
>           page_table=(MagickOffsetType *) RelinquishMagickMemory(page_table);
1179a1184
>         }


ChangeLog

2017-08-10  6.9.9-6 Glenn Randers-Pehrson <glennrp@image...>
  * tests/validate.c: Show the reason for failures in the test logs,
    if available.

2017-08-03  6.9.9-6 Glenn Randers-Pehrson <glennrp@image...>
  * Put UTC time in the PNG tIME chunk instead of local time (reference
    https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=32447).

2017/08/03(Thu) ImageMagick-6.9.9-5差分

[]ImageMagick-6.9.9-5差分

ImageMagick-6.9.9-4差分 - yoyaのメモの続き

The latest release of ImageMagick is version 6.9.9-5

まとめ

差分

2017-07-29 6.9.9-5 Cristy <quetzlzacatenango@image...>

* Off by one error for gradient coder

ChangeLogにない差分

(調査中)

ChangeLog

2017-08-02  6.9.9-5 Cristy  <quetzlzacatenango@image...>
  * Release ImageMagick version 6.9.9-5, GIT revision 11858:7a555e53f:20170802.

2017-08-01  6.9.9-5 Cristy  <quetzlzacatenango@image...>
  * Fixed numerous memory leaks (reference
    https://github.com/ImageMagick/ImageMagick/issues).

2017-07-29  6.9.9-5 Glenn Randers-Pehrson <glennrp@image...>
  * Properly set image->colorspace in the PNG decoder (previously
    it was setting image->gamma, but only setting image->colorspace
    for grayscale and gray-alpha images.  Reference
    https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=32418).
  * Fix improper use of NULL in the JNG decoder (CVE-2017-11750, Reference
    https://github.com/ImageMagick/ImageMagick/issues/632).

2017-07-29  6.9.9-5 Cristy  <quetzlzacatenango@image...>
  * Off by one error for gradient coder (reference
    https://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=32416).

2017/07/29(Sat) ImageMagick-6.9.9-4差分

[]ImageMagick-6.9.9-4差分

ImageMagick-6.9.9-3差分 - yoyaのメモの続き

The latest release of ImageMagick is version 6.9.9-4

まとめ

  • メモリ関連の不具合を沢山修正

差分

  • write_chunk_from_profile() coders/png から削除。少なくとも 6.7.6. から動かしてなかったので。
  • 沢山の冗長なチェックを RelinquishMagickMemory() から削除、NULL 引数で読んだ時の安全用、
  • vpAg チャンク書き込みのサポートを削除 (代わりに caNv に書く)

* Removed vpAg chunk write support (we are now writing caNv instead).

* coders/png.c: メモリリークを防ぐ為に quantum_info を初期化

ChangeLogにない差分

(調査中)

ChangeLog

2017-07-28  6.9.9-4 Cristy  <quetzlzacatenango@image...>
  * Release ImageMagick version 6.9.9-3, GIT revision 11833:4e81160d6:20170728.

2017-07-25  6.9.9-4 Cristy  <quetzlzacatenango@image...>
  * Fixed numerous memory leaks (reference
    https://github.com/ImageMagick/ImageMagick/issues).
  * coders/png.c: Initialized quantum_scanline to prevent a bad free
    (reference https://github.com/ImageMagick/ImageMagick/issues/621).

2017-07-24  6.9.9-4 Glenn Randers-Pehrson <glennrp@image...>
  * Removed write_chunk_from_profile() from coders/png.c because it
    has not worked at least since version 6.7.6.
  * Removed many redundant checks before RelinquishMagickMemory(),
    which is safe to call with a NULL argument.
  * Removed vpAg chunk write support (we are now writing caNv instead).
  * coders/png.c: Initialized quantum_info to prevent memory leakage
    (reference https://github.com/ImageMagick/ImageMagick/issues/582).

2017/07/25(Tue) ImageMagick-6.9.9-3差分

[]ImageMagick-6.9.9-3差分

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

The latest release of ImageMagick is version 6.9.9-3

まとめ

差分



ChangeLogにない差分

(調査中)

ChangeLog

2017-07-24  6.9.9-3 Cristy  <quetzlzacatenango@image...>
  * Release ImageMagick version 6.9.9-3, GIT revision 11809:2bd88257b:20170724.

2017-07-23  6.9.9-3 Cristy  <quetzlzacatenango@image...>
  * Fixed numerous memory leaks (reference
    https://github.com/ImageMagick/ImageMagick/issues).

2017-07-23  6.9.9-3 Glenn Randers-Pehrson <glennrp@image...>
  * Fix memory leaks when reading a malformed JNG image:
    https://github.com/ImageMagick/ImageMagick/issues/600).
    https://github.com/ImageMagick/ImageMagick/issues/602).