<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/php-git.git/ext/gd, branch PHP-5.6.33</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>Fixed bug #75571: Potential infinite loop in gdImageCreateFromGifCtx</title>
<updated>2018-01-02T03:51:26+00:00</updated>
<author>
<name>Christoph M. Becker</name>
<email>cmbecker69@gmx.de</email>
</author>
<published>2017-11-29T17:52:33+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=8d6e9588671136837533fe3785657c31c5b52767'/>
<id>8d6e9588671136837533fe3785657c31c5b52767</id>
<content type='text'>
Due to a signedness confusion in `GetCode_` a corrupt GIF file can
trigger an infinite loop.  Furthermore we make sure that a GIF without
any palette entries is treated as invalid *after* open palette entries
have been removed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Due to a signedness confusion in `GetCode_` a corrupt GIF file can
trigger an infinite loop.  Furthermore we make sure that a GIF without
any palette entries is treated as invalid *after* open palette entries
have been removed.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix #74435: Buffer over-read into uninitialized memory</title>
<updated>2017-07-05T02:00:57+00:00</updated>
<author>
<name>Christoph M. Becker</name>
<email>cmbecker69@gmx.de</email>
</author>
<published>2017-06-20T14:45:42+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=8dc4f4dc9e44d1cbfe4654aa6e0dc27c94913938'/>
<id>8dc4f4dc9e44d1cbfe4654aa6e0dc27c94913938</id>
<content type='text'>
The stack allocated color map buffers were not zeroed before usage, and
so undefined palette indexes could cause information leakage.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The stack allocated color map buffers were not zeroed before usage, and
so undefined palette indexes could cause information leakage.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix #73869: Signed Integer Overflow gd_io.c</title>
<updated>2017-01-17T08:30:58+00:00</updated>
<author>
<name>Christoph M. Becker</name>
<email>cmbecker69@gmx.de</email>
</author>
<published>2016-12-17T16:06:58+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=d2274b01cbbadf5516b3ea87ad76fbae18834007'/>
<id>d2274b01cbbadf5516b3ea87ad76fbae18834007</id>
<content type='text'>
GD2 stores the number of horizontal and vertical chunks as words (i.e. 2
byte unsigned). These values are multiplied and assigned to an int when
reading the image, what can cause integer overflows. We have to avoid
that, and also make sure that either chunk count is actually greater
than zero. If illegal chunk counts are detected, we bail out from
reading the image.

(cherry picked from commit 5b5d9db3988b829e0b121b74bb3947f01c2796a1)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
GD2 stores the number of horizontal and vertical chunks as words (i.e. 2
byte unsigned). These values are multiplied and assigned to an int when
reading the image, what can cause integer overflows. We have to avoid
that, and also make sure that either chunk count is actually greater
than zero. If illegal chunk counts are detected, we bail out from
reading the image.

(cherry picked from commit 5b5d9db3988b829e0b121b74bb3947f01c2796a1)
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix #73868: DOS vulnerability in gdImageCreateFromGd2Ctx()</title>
<updated>2017-01-17T08:30:43+00:00</updated>
<author>
<name>Christoph M. Becker</name>
<email>cmbecker69@gmx.de</email>
</author>
<published>2016-08-16T16:23:36+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=f1b2afc9d9e77edf41804f5dfc4e2069d8a12975'/>
<id>f1b2afc9d9e77edf41804f5dfc4e2069d8a12975</id>
<content type='text'>
We must not pretend that there are image data if there are none. Instead
we fail reading the image file gracefully.

(cherry picked from commit cdb648dc4115ce0722f3cc75e6a65115fc0e56ab)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We must not pretend that there are image data if there are none. Instead
we fail reading the image file gracefully.

(cherry picked from commit cdb648dc4115ce0722f3cc75e6a65115fc0e56ab)
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix #73549: Use after free when stream is passed to imagepng</title>
<updated>2016-11-27T22:51:02+00:00</updated>
<author>
<name>Christoph M. Becker</name>
<email>cmbecker69@gmx.de</email>
</author>
<published>2016-11-17T12:44:30+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=5049ef2f1c496c4964cd147e185c1f765ab0347b'/>
<id>5049ef2f1c496c4964cd147e185c1f765ab0347b</id>
<content type='text'>
If a stream is passed to imagepng() or other image output functions,
opposed to a filename, we must not close this stream.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If a stream is passed to imagepng() or other image output functions,
opposed to a filename, we must not close this stream.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix #73582: Failing ext/gd/tests/imagettftext_charmap_order.phpt</title>
<updated>2016-11-25T22:14:08+00:00</updated>
<author>
<name>Christoph M. Becker</name>
<email>cmbecker69@gmx.de</email>
</author>
<published>2016-11-25T22:02:34+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=7f529e3dee032d5977166c3eb7b70f57edc8e562'/>
<id>7f529e3dee032d5977166c3eb7b70f57edc8e562</id>
<content type='text'>
This test is not supposed to work with JIS-mapped Japanese font support
enabled.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This test is not supposed to work with JIS-mapped Japanese font support
enabled.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge remote-tracking branch 'phpsec/PHP-5.6.28' into PHP-5.6</title>
<updated>2016-11-08T10:06:52+00:00</updated>
<author>
<name>Anatol Belski</name>
<email>ab@php.net</email>
</author>
<published>2016-11-08T10:06:52+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=33766347cbf6acb83ec3df23318b534ec0f40c48'/>
<id>33766347cbf6acb83ec3df23318b534ec0f40c48</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix #72696: imagefilltoborder stackoverflow on truecolor images</title>
<updated>2016-10-30T21:31:29+00:00</updated>
<author>
<name>Christoph M. Becker</name>
<email>cmbecker69@gmx.de</email>
</author>
<published>2016-10-25T11:23:16+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=863d37ea66d5c960db08d6f4a2cbd2518f0f80d1'/>
<id>863d37ea66d5c960db08d6f4a2cbd2518f0f80d1</id>
<content type='text'>
We must not allow negative color values be passed to
gdImageFillToBorder(), because that can lead to infinite recursion
since the recursion termination condition will not necessarily be met.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We must not allow negative color values be passed to
gdImageFillToBorder(), because that can lead to infinite recursion
since the recursion termination condition will not necessarily be met.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix #72482: Ilegal write/read access caused by gdImageAALine overflow</title>
<updated>2016-10-30T21:28:23+00:00</updated>
<author>
<name>Christoph M. Becker</name>
<email>cmbecker69@gmx.de</email>
</author>
<published>2016-10-25T13:14:22+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=6499581af76cfe986e12330faabb3a7c36d45ffc'/>
<id>6499581af76cfe986e12330faabb3a7c36d45ffc</id>
<content type='text'>
Instead of rolling our own bounds check we use clip_1d() as it's done
in gdImageLine() and in external libgd. We must not pass the image
width and height, respectively, but rather the largest ordinate value
that is allowed to be accessed, i.e. width-1 and height-1,
respectively.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of rolling our own bounds check we use clip_1d() as it's done
in gdImageLine() and in external libgd. We must not pass the image
width and height, respectively, but rather the largest ordinate value
that is allowed to be accessed, i.e. width-1 and height-1,
respectively.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix #72494: imagecropauto out-of-bounds access</title>
<updated>2016-10-25T12:29:48+00:00</updated>
<author>
<name>Christoph M. Becker</name>
<email>cmbecker69@gmx.de</email>
</author>
<published>2016-10-25T12:19:36+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/php-git.git/commit/?id=cd13d0260a9327af541176235e76cdef8af3a27a'/>
<id>cd13d0260a9327af541176235e76cdef8af3a27a</id>
<content type='text'>
This issue has actually already been fixed with commit 46f2c690. We're
adding a regression test and a NEWS entry, and also port the fix in
gdImageCropThreshold() from libgd:
  * &lt;https://github.com/libgd/libgd/commit/b347e034&gt;
  * &lt;https://github.com/libgd/libgd/commit/46f2c690&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This issue has actually already been fixed with commit 46f2c690. We're
adding a regression test and a NEWS entry, and also port the fix in
gdImageCropThreshold() from libgd:
  * &lt;https://github.com/libgd/libgd/commit/b347e034&gt;
  * &lt;https://github.com/libgd/libgd/commit/46f2c690&gt;
</pre>
</div>
</content>
</entry>
</feed>
