]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Thu, 13 Dec 2018 01:53:58 +0000 (20:53 -0500)
committerCristy <urban-warrior@imagemagick.org>
Thu, 13 Dec 2018 01:53:58 +0000 (20:53 -0500)
MagickCore/enhance.c
aclocal.m4
coders/tga.c
config/compile
config/depcomp
configure
configure.ac

index 82e896f717fc198421e20a36ed0bea25de808c40..560e7942559b5ceae8af19a32da29e5143ebfadc 100644 (file)
@@ -665,10 +665,10 @@ MagickExport MagickBooleanType CLAHEImage(Image *image,const size_t tile_width,
   if (image->debug != MagickFalse)
     (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
   status=MagickTrue;
-  tile.x=(ssize_t) (PerceptibleReciprocal(tile_width)*image->columns);
-  tile.y=(ssize_t) (PerceptibleReciprocal(tile_height)*image->rows);
+  tile.x=(ssize_t) (image->columns/(tile_width == 0 ? 1 : tile_width));
   tile.x=(ssize_t) (tile.x < 2 ? 2 : tile.x >= MaxCLAHETiles ? MaxCLAHETiles-1 :
     tile.x);
+  tile.y=(ssize_t) (image->rows/(tile_height == 0 ? 1 : tile_height));
   tile.y=(ssize_t) (tile.y < 2 ? 2 : tile.y >= MaxCLAHETiles ? MaxCLAHETiles-1 :
     tile.y);
   width=((image->columns+tile.x-1)/tile.x)*tile.x;
index 64e6dfefd758cf3b5f7657402bb52128c4435ca0..07f4071180d554bf3237806d6420f4912bd3bb45 100644 (file)
@@ -201,7 +201,7 @@ AC_CONFIG_COMMANDS_PRE(
 Usually this means the macro was only invoked conditionally.]])
 fi])])
 
-# Copyright (C) 1999-2019 Free Software Foundation, Inc.
+# Copyright (C) 1999-2018 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -392,7 +392,7 @@ _AM_SUBST_NOTMAKE([am__nodep])dnl
 
 # Generate code to set up dependency tracking.              -*- Autoconf -*-
 
-# Copyright (C) 1999-2019 Free Software Foundation, Inc.
+# Copyright (C) 1999-2018 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -867,7 +867,7 @@ AC_DEFUN([_AM_SET_OPTIONS],
 AC_DEFUN([_AM_IF_OPTION],
 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
 
-# Copyright (C) 1999-2019 Free Software Foundation, Inc.
+# Copyright (C) 1999-2018 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
index 296485ad942a7037c3b28a0907ccb2ce01b01a59..9ae089636dc9ecbc9517728c342c3c7b1d27fb5b 100644 (file)
@@ -859,6 +859,8 @@ static MagickBooleanType WriteTGAImage(const ImageInfo *image_info,Image *image,
       if (origin == TopLeftOrientation || origin == TopRightOrientation)
         tga_info.attributes|=(1UL << 5);
     }
+  if ((image->columns > 65535) || (image->rows > 65535))
+    ThrowWriterException(ImageError,"WidthOrHeightExceedsLimit");
   /*
     Write TGA header.
   */
index d23d320dd1adeb5aa685395d7a20a993349db6d9..99e50524b3bade179355469777b4d664bcd5c964 100755 (executable)
@@ -3,7 +3,7 @@
 
 scriptversion=2018-03-07.03; # UTC
 
-# Copyright (C) 1999-2019 Free Software Foundation, Inc.
+# Copyright (C) 1999-2018 Free Software Foundation, Inc.
 # Written by Tom Tromey <tromey@cygnus.com>.
 #
 # This program is free software; you can redistribute it and/or modify
index 3f273877f92ac09b52b34a32da5ed5730ae04864..65cbf7093a1e4c4a2da08ac8dcd725f8376c344c 100755 (executable)
@@ -3,7 +3,7 @@
 
 scriptversion=2018-03-07.03; # UTC
 
-# Copyright (C) 1999-2019 Free Software Foundation, Inc.
+# Copyright (C) 1999-2018 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
index 7a6479f44669d441eb679caf6ae7ebc32dae7e32..e0f98b5869925724dbdfec6fd639b8ac372a8bd6 100755 (executable)
--- a/configure
+++ b/configure
@@ -4570,7 +4570,7 @@ MAGICK_PATCHLEVEL_VERSION=17
 
 MAGICK_VERSION=7.0.8-17
 
-MAGICK_GIT_REVISION=15110:d52f307da:20181210
+MAGICK_GIT_REVISION=15114:ae75b7d45:20181212
 
 
 # Substitute library versioning
@@ -35888,7 +35888,7 @@ windows_font_dir=''
 if test "${with_windows_font_dir}" != 'default'; then
   windows_font_dir="${with_windows_font_dir}/"
 else
-  for font_dir in '/usr/X11R6/lib/X11/fonts/truetype/' '/usr/X11R7/lib/X11/fonts/truetype/' '/usr/share/fonts/msttcore/'; do
+  for font_dir in '/usr/X11R6/lib/X11/fonts/truetype/' '/usr/X11R7/lib/X11/fonts/truetype/' '/usr/share/fonts/msttcore/' '/usr/share/fonts/microsoft/'; do
     if test -f "${font_dir}arial.ttf"; then
       windows_font_dir="${font_dir}"
       break 1
index e770e52cee4ac902d9c3be5ee4b6d0cbbb119f29..3b2d227f348d53d3bb539486fc625cfc30c3f8a8 100644 (file)
@@ -3388,7 +3388,7 @@ windows_font_dir=''
 if test "${with_windows_font_dir}" != 'default'; then
   windows_font_dir="${with_windows_font_dir}/"
 else
-  for font_dir in '/usr/X11R6/lib/X11/fonts/truetype/' '/usr/X11R7/lib/X11/fonts/truetype/' '/usr/share/fonts/msttcore/'; do
+  for font_dir in '/usr/X11R6/lib/X11/fonts/truetype/' '/usr/X11R7/lib/X11/fonts/truetype/' '/usr/share/fonts/msttcore/' '/usr/share/fonts/microsoft/'; do
     if test -f "${font_dir}arial.ttf"; then
       windows_font_dir="${font_dir}"
       break 1