Commits

Anonymous committed 2d37c62

- sync to 2.0.27

Comments (0)

Files changed (5)

 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.57 for GD 2.0.26.
+# Generated by GNU Autoconf 2.57 for GD 2.0.27.
 #
 # Report bugs to <gd@boutell.com>.
 #
 # Identity of this package.
 PACKAGE_NAME='GD'
 PACKAGE_TARNAME='gd'
-PACKAGE_VERSION='2.0.26'
-PACKAGE_STRING='GD 2.0.26'
+PACKAGE_VERSION='2.0.27'
+PACKAGE_STRING='GD 2.0.27'
 PACKAGE_BUGREPORT='gd@boutell.com'
 
 ac_unique_file="gd.c"
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures GD 2.0.26 to adapt to many kinds of systems.
+\`configure' configures GD 2.0.27 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of GD 2.0.26:";;
+     short | recursive ) echo "Configuration of GD 2.0.27:";;
    esac
   cat <<\_ACEOF
 
 test -n "$ac_init_help" && exit 0
 if $ac_init_version; then
   cat <<\_ACEOF
-GD configure 2.0.26
+GD configure 2.0.27
 generated by GNU Autoconf 2.57
 
 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by GD $as_me 2.0.26, which was
+It was created by GD $as_me 2.0.27, which was
 generated by GNU Autoconf 2.57.  Invocation command line was
 
   $ $0 $@
 
 GDLIB_MAJOR=2
 GDLIB_MINOR=0
-GDLIB_REVISION=26
+GDLIB_REVISION=27
 GDLIBNAME=gd
 #Expanded by tests later in this file. TBB 2.0.26
 FEATURES=
 
 # Define the identity of the package.
  PACKAGE=gd
- VERSION=2.0.26
+ VERSION=2.0.27
 
 
 cat >>confdefs.h <<_ACEOF
 } >&5
 cat >&5 <<_CSEOF
 
-This file was extended by GD $as_me 2.0.26, which was
+This file was extended by GD $as_me 2.0.27, which was
 generated by GNU Autoconf 2.57.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
 
 cat >>$CONFIG_STATUS <<_ACEOF
 ac_cs_version="\\
-GD config.status 2.0.26
+GD config.status 2.0.27
 configured by $0, generated by GNU Autoconf 2.57,
   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
 AC_PREREQ(2.54)
 
 #HEY! Change BOTH the vesion number and the GDLIB_REVISION setting!
-AC_INIT([GD], [2.0.26], [gd@boutell.com])
+AC_INIT([GD], [2.0.27], [gd@boutell.com])
 AC_CONFIG_SRCDIR([gd.c])
 AC_CONFIG_AUX_DIR(config)
 
 GDLIB_MAJOR=2
 GDLIB_MINOR=0
-GDLIB_REVISION=26
+GDLIB_REVISION=27
 GDLIBNAME=gd
 #Expanded by tests later in this file. TBB 2.0.26
 FEATURES=
 static void horizontalLine(gdImagePtr im, int minx, int maxx, int y,
 	int fill_color)
 {
-  if (minx < im->cx1) {
-    minx = im->cx1;
-  } 
-  if (maxx > im->cx2) {
-    maxx = im->cx2;
-  } 
-  if (y < im->cy1) {
-    y = im->cy1;
-  }
-  if (y > im->cy2) {
-    y = im->cy2;
-  }
-  if (minx > maxx) {
-    int t = maxx;
-    maxx = minx;
-    minx = t;
-  } 
+  /* 2.0.27: potential corruption fixed by John Ellson */
+  if (minx < im->cx1) minx = im->cx1;
+  if (maxx < minx) maxx = minx;
+  if (maxx > im->cx2) maxx = im->cx2;
+  if (minx > maxx) minx = maxx;
+                                                                                                                                        
+  if (y < im->cy1) y = im->cy1;
+  if (y > im->cy2) y = im->cy2;
+                                                                                                                                        
   if (im->trueColor) {
     while (minx <= maxx) {
       im->tpixels[y][minx++] = fill_color;
       total_max.y += 64;
  
       /* rotate bounding rectangle, scale and round to int pixels, and translate */
-      brect[0] = x + (total_min.x * cos_a + total_min.y * sin_a + 32)/64;
-      brect[1] = y - (total_min.x * sin_a - total_min.y * cos_a + 32)/64;
-      brect[2] = x + (total_max.x * cos_a + total_min.y * sin_a + 32)/64;
-      brect[3] = y - (total_max.x * sin_a - total_min.y * cos_a + 32)/64;
-      brect[4] = x + (total_max.x * cos_a + total_max.y * sin_a + 32)/64;
-      brect[5] = y - (total_max.x * sin_a - total_max.y * cos_a + 32)/64;
-      brect[6] = x + (total_min.x * cos_a + total_max.y * sin_a + 32)/64;
-      brect[7] = y - (total_min.x * sin_a - total_max.y * cos_a + 32)/64;
+      brect[0] = x + (total_min.x * cos_a + total_max.y * sin_a + 32)/64;
+      brect[1] = y - (total_min.x * sin_a - total_max.y * cos_a + 32)/64;
+      brect[2] = x + (total_max.x * cos_a + total_max.y * sin_a + 32)/64;
+      brect[3] = y - (total_max.x * sin_a - total_max.y * cos_a + 32)/64;
+      brect[4] = x + (total_max.x * cos_a + total_min.y * sin_a + 32)/64;
+      brect[5] = y - (total_max.x * sin_a - total_min.y * cos_a + 32)/64;
+      brect[6] = x + (total_min.x * cos_a + total_min.y * sin_a + 32)/64;
+      brect[7] = y - (total_min.x * sin_a - total_min.y * cos_a + 32)/64;
     }
 
   if (tmpstr)
 <!-- REMEMBER TO EDIT index.html.source -->
 <head>
-<TITLE>gd 2.0.26</TITLE>
+<TITLE>gd 2.0.27</TITLE>
 </head>
 <body bgcolor="#FFFFFF">
 <!-- BANNER HERE -->
-<H2>gd 2.0.26</H2>
+<H2>gd 2.0.27</H2>
 <H3>A graphics library for fast image creation</H3>
 <H3>Follow this link to the
 <A HREF="http://www.boutell.com/gd/">latest version
 new installation overwrites the old.
 <p>
 <strong>ABOUT GD AND GIF:</strong>
-gd 2.0.26 creates PNG, JPEG and WBMP images, not GIF images. This is a 
+gd 2.0.27 creates PNG, JPEG and WBMP images, not GIF images. This is a 
 good thing.  PNG is a more compact format, and full compression is
 available.  JPEG works best with photographic images, and is still
 more compatible with the major Web browsers than even PNG is. WBMP is
 modern image formats such as PNG and JPEG as soon as possible.
 
 <p>
-When building from soruce, gd 2.0.26 <strong>requires</strong> that the 
+When building from soruce, gd 2.0.27 <strong>requires</strong> that the 
 following libraries also be installed, in order to produce the related 
 image formats. The win32 binary release (bgd) already contains the
 appropriate libraries.
 <H3>Table of Contents</H3>
 <UL>
 <LI><A HREF="#notice">Credits and license terms</A>
-<LI><A HREF="#whatsnew2.0.26">What's new in version "XYZ" of GD?</A>
+<LI><A HREF="#whatsnew2.0.27">What's new in version "XYZ" of GD?</A>
 <LI><A HREF="#whatis">What is gd?</A>
 <LI><A HREF="#gdother">What if I want to use another programming language?</A>
 <LI><A HREF="#required">What else do I need to use gd?</A>
 <A NAME="gdother"><H3>What if I want to use another programming
 language?</h3></A>
 Not all of these tools are necessarily up to date and fully compatible
-with 2.0.26.
+with 2.0.27.
 <h4>PHP</h4>
 A variant of gd 2.x is included in PHP 4.3.0. It is also possible
-to patch PHP 4.2.3 for use with gd 2.0.26; see the
+to patch PHP 4.2.3 for use with gd 2.0.27; see the
 <a href="http://www.boutell.com/gd/">gd home page</a> for a link to
 that information. It would be a Good Idea to merge all of the things
 that are better in mainstream gd and all of the things that are
 <li><a href="http://martin.gleeson.com/fly/">fly</a>, by Martin Gleeson
 </ul>
 <P>
+<A NAME="whatsnew2.0.27"><H3>What's new in version 2.0.27?</H3></A>
+<P>
+<ul>
+<li>In gd 2.0.26, there was potential for out of bounds fills, and therefore
+crashes, in the horizontalLine function used by gdImageFilledPolygon.
+Fixed by John Ellson.
+<li>The order of the points returned in the bounding rectangle by
+gdImageStringFT was incorrect in version 2.0.26. This has been
+corrected in version 2.0.27. Thanks to Riccardo Cohen for pointing
+this out, and to John Ellson for verifying and fixing it.
+</ul>
+<P>
 <A NAME="whatsnew2.0.26"><H3>What's new in version 2.0.26?</H3></A>
 <P>
 The following enhancements and fixes:
 </ul>
 <h4>Source Code:</h4>
 <ul>
-<li><a href="http://www.boutell.com/gd/http/gd-2.0.26.tar.gz">Gzipped Tar File (Unix)</a>
-<li><a href="http://www.boutell.com/gd/http/gd-2.0.26.zip">.ZIP File of SOURCE CODE (Windows)</a>
+<li><a href="http://www.boutell.com/gd/http/gd-2.0.27.tar.gz">Gzipped Tar File (Unix)</a>
+<li><a href="http://www.boutell.com/gd/http/gd-2.0.27.zip">.ZIP File of SOURCE CODE (Windows)</a>
 </ul>
 <P>
 <A NAME="buildgd"><H3>How do I build gd?</H3></A>
 consult with an experienced user of your system. Sorry, we cannot
 answer questions about basic Internet skills.
 <p>
-Unpacking the archive will produce a directory called "gd-2.0.26".
+Unpacking the archive will produce a directory called "gd-2.0.27".
 <p>
 <h4>For Unix</h4>
-<code>cd</code> to the 2.0.26 directory and type:
+<code>cd</code> to the 2.0.27 directory and type:
 <p>
 <code>./configure</code>
 <P>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.