<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/php-git.git/ext/gd/libgd/gd.c, branch PHP-5.6.12</title>
<subtitle>git.php.net: repository/php-src.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/'/>
<entry>
<title>Merge branch 'pull-request/1425' into PHP-5.6</title>
<updated>2015-07-20T23:13:04+00:00</updated>
<author>
<name>Christoph M. Becker</name>
<email>cmb@php.net</email>
</author>
<published>2015-07-20T23:13:04+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=f1228ebc61eb79e9435f462fc925605973d3415a'/>
<id>f1228ebc61eb79e9435f462fc925605973d3415a</id>
<content type='text'>
* pull-request/1425:
  revised bug53156.phpt
  Fix #53156: imagerectangle problem with point ordering
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* pull-request/1425:
  revised bug53156.phpt
  Fix #53156: imagerectangle problem with point ordering
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix #66387: Stack overflow with imagefilltoborder</title>
<updated>2015-07-20T21:36:32+00:00</updated>
<author>
<name>Christoph M. Becker</name>
<email>cmb@php.net</email>
</author>
<published>2015-07-20T21:24:55+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=e7f2356665c2569191a946b6fc35b437f0ae1384'/>
<id>e7f2356665c2569191a946b6fc35b437f0ae1384</id>
<content type='text'>
The stack overflow is caused by the recursive algorithm in combination with a
very large negative coordinate passed to gdImageFillToBorder(). As there is
already a clipping for large positive coordinates to the width and height of
the image, it seems to be consequent to clip to zero also.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The stack overflow is caused by the recursive algorithm in combination with a
very large negative coordinate passed to gdImageFillToBorder(). As there is
already a clipping for large positive coordinates to the width and height of
the image, it seems to be consequent to clip to zero also.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix #53156: imagerectangle problem with point ordering</title>
<updated>2015-07-20T00:14:29+00:00</updated>
<author>
<name>Christoph M. Becker</name>
<email>cmbecker69@gmx.de</email>
</author>
<published>2015-07-20T00:11:18+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=72b73e24a00b9872214fbcc256ee38431d9c9d47'/>
<id>72b73e24a00b9872214fbcc256ee38431d9c9d47</id>
<content type='text'>
Contrary to imagefilledrectangle(), imagerectangle() has the documented
limitation that the given points have to be the upper left and the lower right
corner, respectively. However, libgd already caters to upper right / lower left
pairs, and not catering to the other two combinations seems to be an oversight.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Contrary to imagefilledrectangle(), imagerectangle() has the documented
limitation that the given points have to be the upper left and the lower right
corner, respectively. However, libgd already caters to upper right / lower left
pairs, and not catering to the other two combinations seems to be an oversight.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix #53154: Zero-height rectangle has whiskers</title>
<updated>2015-07-12T23:33:00+00:00</updated>
<author>
<name>Christoph M. Becker</name>
<email>cmb@php.net</email>
</author>
<published>2015-07-12T23:29:01+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=094decc3c0b62a72bacebaf85c6269049bf12885'/>
<id>094decc3c0b62a72bacebaf85c6269049bf12885</id>
<content type='text'>
To avoid drawing the corner pixels twice, gdImageRectangle() draws the vertical
lines 2 points shorter than the actual side of the rectangle. However, this
causes "whiskers" for rectangles with height 0. This patch fixes this issue and
at the same time optimizes the algorithm by drawing only a single line for zero
height and zero width rectangles.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To avoid drawing the corner pixels twice, gdImageRectangle() draws the vertical
lines 2 points shorter than the actual side of the rectangle. However, this
causes "whiskers" for rectangles with height 0. This patch fixes this issue and
at the same time optimizes the algorithm by drawing only a single line for zero
height and zero width rectangles.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix memory leak</title>
<updated>2015-01-05T05:07:57+00:00</updated>
<author>
<name>Stanislav Malyshev</name>
<email>stas@php.net</email>
</author>
<published>2015-01-05T05:07:57+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=184b6d9e731e6a37abaa1ee07caa6d7f699caa10'/>
<id>184b6d9e731e6a37abaa1ee07caa6d7f699caa10</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Reduce compiler noise by removing unused variables and labels</title>
<updated>2013-08-15T04:06:59+00:00</updated>
<author>
<name>Christopher Jones</name>
<email>sixd@php.net</email>
</author>
<published>2013-08-15T04:06:59+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=cd14de94d2428a28c8bfad1aad9837c59ab81e8f'/>
<id>cd14de94d2428a28c8bfad1aad9837c59ab81e8f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix #65070, bgcolor does not use the same format as the input image with imagerotate</title>
<updated>2013-06-20T20:19:33+00:00</updated>
<author>
<name>Pierre Joye</name>
<email>pierre.php@gmail.com</email>
</author>
<published>2013-06-20T20:19:33+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=07e52857b5f7a65c1552628e14a8a6aeeea24508'/>
<id>07e52857b5f7a65c1552628e14a8a6aeeea24508</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>- #64710, kill unused var</title>
<updated>2013-04-26T06:15:05+00:00</updated>
<author>
<name>Pierre Joye</name>
<email>pierre.php@gmail.com</email>
</author>
<published>2013-04-26T06:15:05+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=7bd20354a828b1975571bddf7e1f7a43e264992d'/>
<id>7bd20354a828b1975571bddf7e1f7a43e264992d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>#64710, kill unused vars</title>
<updated>2013-04-26T06:09:19+00:00</updated>
<author>
<name>Pierre Joye</name>
<email>pierre.php@gmail.com</email>
</author>
<published>2013-04-26T06:09:19+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=685a6d9aab5fe9f8f66193b407e29126876b84c6'/>
<id>685a6d9aab5fe9f8f66193b407e29126876b84c6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>#64710, kill unused vars</title>
<updated>2013-04-26T06:06:34+00:00</updated>
<author>
<name>Pierre Joye</name>
<email>pierre.php@gmail.com</email>
</author>
<published>2013-04-26T06:06:34+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=b5902b6c9de4886a1e66e93c6aaabc9eb4ee768c'/>
<id>b5902b6c9de4886a1e66e93c6aaabc9eb4ee768c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
