History log of /PHP-8.1/ext/gd/gd.c (Results 201 – 225 of 824)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# af69021f 03-Sep-2016 Christoph M. Becker

Merge branch 'PHP-7.1'


# 9eeb705e 03-Sep-2016 Christoph M. Becker

Merge branch 'PHP-7.0' into PHP-7.1


# 0bc7e0c0 03-Sep-2016 Christoph M. Becker

Merge branch 'PHP-5.6' into PHP-7.0


# bca913d7 03-Sep-2016 Christoph M. Becker

Fix proto comment

While we're at it, we also change a related comment to use American English
consistently.

# 0bf11d1e 02-Sep-2016 Christoph M. Becker

Implement FAST_ZPP support for imagecolorat() and imagesetpixel()

These functions may be used in tight loops to do image manipulation in
userland. Using FAST_ZPP is supposed to bring con

Implement FAST_ZPP support for imagecolorat() and imagesetpixel()

These functions may be used in tight loops to do image manipulation in
userland. Using FAST_ZPP is supposed to bring considerable performance
improvements in this case; we've been able to measure up to 25%.

show more ...

# 2c74a528 21-Aug-2016 Christoph M. Becker

Merge branch 'PHP-7.1'


# 5347246f 21-Aug-2016 Christoph M. Becker

Merge branch 'PHP-7.0' into PHP-7.1


# 4c13a7f5 21-Aug-2016 Christoph M. Becker

Merge branch 'PHP-5.6' into PHP-7.0


# 6a232c36 21-Aug-2016 Christoph M. Becker

Fix #68716: possible resource leaks in _php_image_convert()

We properly clean up after ourselves wrt. to closing opened file pointers
and created images.

# 660d8f16 17-Aug-2016 Xinchen Hui

Merge branch 'PHP-7.1'

* PHP-7.1: (49 commits)
Update NEWs
Update NEWs
Unused label
Fixed bug #72853 (stream_set_blocking doesn't work)
fix test
Bug #7266

Merge branch 'PHP-7.1'

* PHP-7.1: (49 commits)
Update NEWs
Update NEWs
Unused label
Fixed bug #72853 (stream_set_blocking doesn't work)
fix test
Bug #72663 - part 3
Bug #72663 - part 2
Bug #72663 - part 1
Update NEWS
BLock test with memory leak
fix tests
Fix TSRM build
Fix bug #72850 - integer overflow in uuencode
Fixed bug #72849 - integer overflow in urlencode
Fix bug #72848 - integer overflow in quoted_printable_encode caused heap corruption
Fix bug #72838 - Integer overflow lead to heap corruption in sql_regcase
Fix bug #72837 - integer overflow in bzdecompress caused heap corruption
Fix bug #72836 - integer overflow in base64_decode caused heap corruption
Fix for bug #72807 - do not produce strings with negative length
Fix for bug #72790 and bug #72799
...

show more ...


# ce6ad9bd 17-Aug-2016 Xinchen Hui

Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0: (48 commits)
Update NEWs
Unused label
Fixed bug #72853 (stream_set_blocking doesn't work)
fix test
Bug #72663 - p

Merge branch 'PHP-7.0' into PHP-7.1

* PHP-7.0: (48 commits)
Update NEWs
Unused label
Fixed bug #72853 (stream_set_blocking doesn't work)
fix test
Bug #72663 - part 3
Bug #72663 - part 2
Bug #72663 - part 1
Update NEWS
BLock test with memory leak
fix tests
Fix TSRM build
Fix bug #72850 - integer overflow in uuencode
Fixed bug #72849 - integer overflow in urlencode
Fix bug #72848 - integer overflow in quoted_printable_encode caused heap corruption
Fix bug #72838 - Integer overflow lead to heap corruption in sql_regcase
Fix bug #72837 - integer overflow in bzdecompress caused heap corruption
Fix bug #72836 - integer overflow in base64_decode caused heap corruption
Fix for bug #72807 - do not produce strings with negative length
Fix for bug #72790 and bug #72799
Fix bug #72730 - imagegammacorrect allows arbitrary write access
...

Conflicts:
ext/standard/var_unserializer.c

show more ...


# 1bd103df 10-Aug-2016 Stanislav Malyshev

Fix bug #72730 - imagegammacorrect allows arbitrary write access

# a3598dd7 10-Aug-2016 Stanislav Malyshev

Fix bug#72697 - select_colors write out-of-bounds

# 28022c9b 16-Aug-2016 Anatol Belski

Fix bug#72697 - select_colors write out-of-bounds

(cherry picked from commit b6f13a5ef9d6280cf984826a5de012a32c396cd4)

Conflicts:
ext/gd/gd.c

# e70069a6 10-Aug-2016 Stanislav Malyshev

Fix bug #72730 - imagegammacorrect allows arbitrary write access

(cherry picked from commit 047fe0ed03093a496691d376fcf51a7e2f1d04b0)

Conflicts:
ext/gd/gd.c

# 36b050c2 11-Aug-2016 Kalle Sommer Nielsen

Get rid of these slow calls to LoadLibrary()/GetProcAddress() calls on Windows, we require Windows Vista as bare minimum for PHP anyway, so it does not make any sense to do this slow emulation anyway

Get rid of these slow calls to LoadLibrary()/GetProcAddress() calls on Windows, we require Windows Vista as bare minimum for PHP anyway, so it does not make any sense to do this slow emulation anyway.

GD:
- PrintWindow() is available as of Windows XP, it requires linking to User32.lib, which config.w32 for ext/gd already.

CLI:
- The borrowed functions from PostgreSQL to set the titles of the console window uses SetConsoleTitle() and GetConsoleTitle(), both are available as of Windows 2000 from Kernel32.lib which we already are linking against.

Standard:
- The disk space utility functions uses GetDiskFreeSpaceExA() which is available as of Windows XP, again links to Kernel32.lib.
- The symlink() PHP function uses CreateSymbolicLinkA() which is available from Windows Vista, again from Kernel32.lib.
- php_get_windows_name() in info.c uses GetNativeSystemInfo() which is available as of Windows XP and GetProductInfo() which is available as of Windows Vista, both are again from Kernel32.lib.

Notes:
- ext/interbase & ext/pdo_firebird uses GetProcAddress(), I'm not entirely sure how to handle this one.
- ext/sqlite3, this is apart of the bundled libsqlite3, I don't really wanna play around with our bundled libs and make it a bigger issue for those who maintain and upgrade them.
- ext/readline, the call to GetProcAddress() here does not do any system calls, so it is left as is.
- win32/ioutil.c uses GetProcAddress(), but the function it attempts to load (PathCchCanonicalizeEx()) is only available from Windows 8 and greater (Pathcch.lib linkage).
- win32/time.c uses GetSystemTimePreciseAsFileTime() which is available from Windows 8 and greater to get the current system date and time which the highest possible precision and falls back to GetSystemTimeAsFileTime() (available as of Windows 2000), again Kernel32.lib, the GetSystemTimePreciseAsFileTime() is left in a GetProcAddress().

show more ...

# fad3f936 03-Aug-2016 Anatol Belski

fix ts build

# 3d0002ed 02-Aug-2016 Christoph M. Becker

Merge branch 'PHP-7.0' into PHP-7.1


# 3a8c027e 02-Aug-2016 Christoph M. Becker

Merge branch 'PHP-5.6' into PHP-7.0


# f5622f5c 02-Aug-2016 Christoph M. Becker

Fix #72709: imagesetstyle() causes OOB read for empty $styles

Calling imagesetstyle() with an empty $styles array caused gdImageSetStyle()
to be called with `noOfPixels==0`, what could h

Fix #72709: imagesetstyle() causes OOB read for empty $styles

Calling imagesetstyle() with an empty $styles array caused gdImageSetStyle()
to be called with `noOfPixels==0`, what could have lead to OOB reads.
Actually, this issue will be fixed in libgd, but to avoid issues when older
libgd is in use, we simply disallow passing an empty $styles array to
imagesetstyle(), what wouldn't serve a useful purpose anyway.

show more ...

# d795a6bf 23-Jul-2016 Christoph M. Becker

Implement #52857: Access to gdImageSetClip() and gdImageGetClip()

We add the necessary PHP bindings for both functions which are available
as of GD_2_0_12 (released 2006-04-05). The API

Implement #52857: Access to gdImageSetClip() and gdImageGetClip()

We add the necessary PHP bindings for both functions which are available
as of GD_2_0_12 (released 2006-04-05). The API of imagegetclip() is modelled
according to imageftbbox().

show more ...

Revision tags: php-7.1.0beta1, php-5.6.24, php-7.0.9, php-5.5.38
# 439e2ae5 19-Jul-2016 Pierre Joye

Merge branch 'PHP-7.0'

* PHP-7.0:
#72482, Ilegal write/read access caused by gdImageAALine overflow
fix #72494, improve input color check and prevent issues when old gd are used,

Merge branch 'PHP-7.0'

* PHP-7.0:
#72482, Ilegal write/read access caused by gdImageAALine overflow
fix #72494, improve input color check and prevent issues when old gd are used, done before gd call
improve fix #72558, free contribRow as well

show more ...


# 2767d195 19-Jul-2016 Pierre Joye

merge conflict


# 1d69028d 19-Jul-2016 Pierre Joye

fix #72494, improve input color check and prevent issues when old gd are used, done before gd call

# 2f817074 18-Jul-2016 Christoph M. Becker

Merge branch 'PHP-7.0'


12345678910>>...33