]> granicus.if.org Git - php/log
php
8 years ago5.6.27 will be next
Ferenc Kovacs [Thu, 1 Sep 2016 18:27:19 +0000 (20:27 +0200)]
5.6.27 will be next

8 years agoFix #71882 amendment 2: Negative ftruncate() on php://memory exhausts memory
Christoph M. Becker [Wed, 31 Aug 2016 14:33:14 +0000 (16:33 +0200)]
Fix #71882 amendment 2: Negative ftruncate() on php://memory exhausts memory

8 years agoFix #71882 amendment: Negative ftruncate() on php://memory exhausts memory
Christoph M. Becker [Wed, 31 Aug 2016 12:51:37 +0000 (14:51 +0200)]
Fix #71882 amendment: Negative ftruncate() on php://memory exhausts memory

To avoid BC breaks, we do not raise a warning for now.

8 years agoUpdate NEWS
Yasuo Ohgaki [Wed, 31 Aug 2016 12:06:19 +0000 (21:06 +0900)]
Update NEWS

8 years agoFix #66797: mb_substr only takes 32-bit signed integer
Christoph M. Becker [Tue, 30 Aug 2016 12:48:24 +0000 (14:48 +0200)]
Fix #66797: mb_substr only takes 32-bit signed integer

`from` and `len` are `long`, but get passed to mbfl_substr() which expects
`int`s. Therefore we clamp the values to avoid the undefined conversion
behavior.

8 years agoTest case for bug #72771
Ville Hukkamäki [Fri, 19 Aug 2016 22:05:04 +0000 (22:05 +0000)]
Test case for bug #72771

8 years agoFix #71882: Negative ftruncate() on php://memory exhausts memory
Christoph M. Becker [Mon, 29 Aug 2016 23:53:27 +0000 (01:53 +0200)]
Fix #71882: Negative ftruncate() on php://memory exhausts memory

We must not pass negative sizes to a size_t parameter.

8 years agofix HANDLE leak
Anatol Belski [Mon, 29 Aug 2016 19:45:39 +0000 (21:45 +0200)]
fix HANDLE leak

8 years agoupdate NEWS
Anatol Belski [Mon, 29 Aug 2016 19:20:36 +0000 (21:20 +0200)]
update NEWS

8 years agoensure null termination
Anatol Belski [Mon, 29 Aug 2016 19:03:03 +0000 (21:03 +0200)]
ensure null termination

8 years agoFixed bug #72703 Out of bounds global memory read in BF_crypt triggered by password_v...
Anatol Belski [Mon, 29 Aug 2016 18:25:34 +0000 (20:25 +0200)]
Fixed bug #72703 Out of bounds global memory read in BF_crypt triggered by password_verify

8 years agofix double free
Anatol Belski [Mon, 29 Aug 2016 17:27:47 +0000 (19:27 +0200)]
fix double free

8 years agofix leak
Anatol Belski [Mon, 29 Aug 2016 16:01:21 +0000 (18:01 +0200)]
fix leak

8 years agoAdded .user.ini support.
George Wang [Mon, 29 Aug 2016 01:49:30 +0000 (21:49 -0400)]
Added .user.ini support.
Added LSPHPRC support.
update LiteSpeed SAPI version to 6.10 .

8 years agoFix #65550: get_browser() incorrectly parsers entries with "+" sign
Christoph M. Becker [Fri, 26 Aug 2016 23:02:58 +0000 (01:02 +0200)]
Fix #65550: get_browser() incorrectly parsers entries with "+" sign

+ signs in the browscap patterns are meant to be literal characters, so we
have to escape them for the regex matching.

8 years agoFix #70825: Cannot fetch multiple values with group in ini file
Christoph M. Becker [Thu, 25 Aug 2016 16:10:38 +0000 (18:10 +0200)]
Fix #70825: Cannot fetch multiple values with group in ini file

If we have the position already from the last fetch, we also have to preset
the current group, because it won't be read again.

8 years agoFix #71514: Bad dba_replace condition because of wrong API usage
Christoph M. Becker [Thu, 25 Aug 2016 14:20:30 +0000 (16:20 +0200)]
Fix #71514: Bad dba_replace condition because of wrong API usage

We're backporting commit 9e309a2d to PHP-5.6, because it is a bugfix.

8 years agobackport relevant part from bug #72858 patch in 7.0
Anatol Belski [Thu, 25 Aug 2016 10:46:28 +0000 (12:46 +0200)]
backport relevant part from bug #72858 patch in 7.0

8 years agoFix #68716: possible resource leaks in _php_image_convert()
Christoph M. Becker [Sun, 21 Aug 2016 17:39:58 +0000 (19:39 +0200)]
Fix #68716: possible resource leaks in _php_image_convert()

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

8 years agoFix #72913: imagecopy() loses single-color transparency on palette images
Christoph M. Becker [Sun, 21 Aug 2016 15:39:23 +0000 (17:39 +0200)]
Fix #72913: imagecopy() loses single-color transparency on palette images

The proper code to handle true-color to palette copies is already contained
in gdImageCopy(), so we can simply remove the buggy duplicated code.

8 years agoFix #66005: imagecopy does not support 1bit transparency on truecolor images
Christoph M. Becker [Sun, 21 Aug 2016 14:07:34 +0000 (16:07 +0200)]
Fix #66005: imagecopy does not support 1bit transparency on truecolor images

We must not copy transparent pixels, see
<https://github.com/libgd/libgd/commit/daac285c>.

8 years agoMerge branch 'PHP-5.6' of git.php.net:/php-src into PHP-5.6
Xinchen Hui [Sun, 21 Aug 2016 09:19:24 +0000 (17:19 +0800)]
Merge branch 'PHP-5.6' of git.php.net:/php-src into PHP-5.6

* 'PHP-5.6' of git.php.net:/php-src:
  Improvements to fix #72714, suggested by nikic
  Fix #65732: grapheme_*() is not Unicode compliant on CR LF sequence
  Fix #72714: _xml_startElementHandler() segmentation fault
  update NEWS
  Fixed bug #72852 imap_mail null dereference
  Revert "Fix dba configuration for Windows"
  Fix dba configuration for Windows
  Fix broken test include
  fix NEWS
  Add myself as PDO_OCI maintainer

8 years agoFixed bug #72907 (null pointer deref, segfault in gc_remove_zval_from_buffer (zend_gc...
Xinchen Hui [Sun, 21 Aug 2016 09:10:10 +0000 (17:10 +0800)]
Fixed bug #72907 (null pointer deref, segfault in gc_remove_zval_from_buffer (zend_gc.c:260))

8 years agoImprovements to fix #72714, suggested by nikic
Christoph M. Becker [Sat, 20 Aug 2016 10:42:03 +0000 (12:42 +0200)]
Improvements to fix #72714, suggested by nikic

8 years agoFix #65732: grapheme_*() is not Unicode compliant on CR LF sequence
Christoph M. Becker [Fri, 19 Aug 2016 17:05:33 +0000 (19:05 +0200)]
Fix #65732: grapheme_*() is not Unicode compliant on CR LF sequence

According to the Unicode specification (at least as of 5.1), CRLF sequences
are considered to be a single grapheme. We cater to that special case by
letting grapheme_ascii_check() fail. While it would be trivial to fix
grapheme_ascii_check() wrt. grapheme_strlen(), grapheme_substr() and
grapheme_strrpos() would be much harder to handle, so we accept the slight
performance penalty if CRLF is involved.

8 years agoFix #72714: _xml_startElementHandler() segmentation fault
Christoph M. Becker [Tue, 16 Aug 2016 18:36:33 +0000 (20:36 +0200)]
Fix #72714: _xml_startElementHandler() segmentation fault

The issue is caused by an integer overflow when the `long` passed as
XML_OPTION_SKIP_TAGSTART is assigned to `xml_parser::toffset` which is
declared as `int`. We can simply work around this issue, by clipping
resulting negative values to 0 (and raising a notice in this case), because
the reasonable range for this value is certainly catered to by positive
`int`s.

However, there still remains the issue that `xml_parser::toffset` is later
added to `char *`s, which can cause OOB reads, so we make sure that the
upper bound never exceeds the strlen(). We eschew optimizing `SKIP_TAGSTART`
wrt. to the potentially duplicate strlen() call, because that code path is
unexpected anyway.

8 years agoupdate NEWS
Anatol Belski [Fri, 19 Aug 2016 23:36:37 +0000 (01:36 +0200)]
update NEWS

8 years agoFixed bug #72852 imap_mail null dereference
Anatol Belski [Fri, 19 Aug 2016 23:34:46 +0000 (01:34 +0200)]
Fixed bug #72852 imap_mail null dereference

8 years agoRevert "Fix dba configuration for Windows"
Christoph M. Becker [Fri, 19 Aug 2016 14:35:31 +0000 (16:35 +0200)]
Revert "Fix dba configuration for Windows"

This reverts commit ad76e8a529eabf150f17d313bb035b329bc68dec.

After a discussion with Anatol it seems to be better QA wise to not make
this change in stable versions or betas.

8 years agoFix dba configuration for Windows
Christoph M. Becker [Fri, 19 Aug 2016 09:42:16 +0000 (11:42 +0200)]
Fix dba configuration for Windows

To be able to build the dba extension on Windows, libdb was required. This
is contrary to *nix where each handler can be configured individually. To
avoid BC breaks, we only do minimal modifications, instead of adjusting the
Windows configuration to match the *nix configuration, for now.

8 years agoFix broken test include
Christoph M. Becker [Thu, 18 Aug 2016 15:53:57 +0000 (17:53 +0200)]
Fix broken test include

To avoid that the test stalls, we must always use `t` mode.

8 years agofix NEWS
Ferenc Kovacs [Thu, 18 Aug 2016 11:01:53 +0000 (13:01 +0200)]
fix NEWS

8 years agoAdd myself as PDO_OCI maintainer
Christopher Jones [Thu, 18 Aug 2016 05:47:25 +0000 (15:47 +1000)]
Add myself as PDO_OCI maintainer

8 years agoPrepare for OCI8 PECL release
Christopher Jones [Thu, 18 Aug 2016 03:50:36 +0000 (13:50 +1000)]
Prepare for OCI8 PECL release

8 years agoSkip tests that are supposed to fail due to bugs in old external libgd
Christoph M. Becker [Wed, 17 Aug 2016 12:04:08 +0000 (14:04 +0200)]
Skip tests that are supposed to fail due to bugs in old external libgd

8 years agoMake tests a little more resilient
Christoph M. Becker [Wed, 17 Aug 2016 15:59:33 +0000 (17:59 +0200)]
Make tests a little more resilient

PNG allows identical images to be stored differently what makes nearly all
tests checking the MD5 hash of the PNG representation fail with external
libgd. For now, we use the GD format instead, which doesn't allow for such
differences.

Of course, this md5() checking should be replaced by a image diffing feature
in the long run.

8 years agoFix #68302: impossible to compile php with zip support
Christoph M. Becker [Wed, 17 Aug 2016 10:43:29 +0000 (12:43 +0200)]
Fix #68302: impossible to compile php with zip support

We should not let configure succeed, if SIZEOF_OFF_T == 0, just to let the
compilation fail later. Instead we bail out early, giving a hint regarding
the potential issue, namely misconfigured libraries.

8 years agoFixed bug #72853 (stream_set_blocking doesn't work)
Xinchen Hui [Wed, 17 Aug 2016 08:54:21 +0000 (16:54 +0800)]
Fixed bug #72853 (stream_set_blocking doesn't work)

Implemented  PHP_STREAM_OPTION_META_DATA_API for plain_wrappers

8 years agoUpdate NEWS
Stanislav Malyshev [Wed, 17 Aug 2016 06:44:59 +0000 (23:44 -0700)]
Update NEWS

8 years agoBLock test with memory leak
Stanislav Malyshev [Wed, 17 Aug 2016 05:49:06 +0000 (22:49 -0700)]
BLock test with memory leak

8 years agofix tests
Stanislav Malyshev [Tue, 16 Aug 2016 23:47:53 +0000 (16:47 -0700)]
fix tests

8 years agoFix TSRM build
Stanislav Malyshev [Tue, 16 Aug 2016 23:34:35 +0000 (16:34 -0700)]
Fix TSRM build

8 years agoFix bug #72850 - integer overflow in uuencode
Stanislav Malyshev [Tue, 16 Aug 2016 23:03:44 +0000 (16:03 -0700)]
Fix bug #72850 - integer overflow in uuencode

8 years agoFixed bug #72849 - integer overflow in urlencode
Stanislav Malyshev [Tue, 16 Aug 2016 22:58:05 +0000 (15:58 -0700)]
Fixed bug #72849 - integer overflow in urlencode

8 years agoFix bug #72848 - integer overflow in quoted_printable_encode caused heap corruption
Stanislav Malyshev [Tue, 16 Aug 2016 22:48:31 +0000 (15:48 -0700)]
Fix bug #72848 - integer overflow in quoted_printable_encode caused heap corruption

8 years agoFix bug #72838 - Integer overflow lead to heap corruption in sql_regcase
Stanislav Malyshev [Tue, 16 Aug 2016 06:43:59 +0000 (23:43 -0700)]
Fix bug #72838 -  Integer overflow lead to heap corruption in sql_regcase

8 years agoFix bug #72837 - integer overflow in bzdecompress caused heap corruption
Stanislav Malyshev [Tue, 16 Aug 2016 06:17:26 +0000 (23:17 -0700)]
Fix bug #72837 - integer overflow in bzdecompress caused heap corruption

8 years agoFix bug #72836 - integer overflow in base64_decode caused heap corruption
Stanislav Malyshev [Mon, 15 Aug 2016 06:13:30 +0000 (23:13 -0700)]
Fix bug #72836 - integer overflow in base64_decode caused heap corruption

8 years agoFix for bug #72807 - do not produce strings with negative length
Stanislav Malyshev [Fri, 12 Aug 2016 06:36:25 +0000 (23:36 -0700)]
Fix for bug #72807 - do not produce strings with negative length

8 years agoFix for bug #72790 and bug #72799
Stanislav Malyshev [Thu, 11 Aug 2016 06:43:56 +0000 (23:43 -0700)]
Fix for bug #72790 and bug #72799

8 years agoFix bug #72730 - imagegammacorrect allows arbitrary write access
Stanislav Malyshev [Wed, 10 Aug 2016 07:14:58 +0000 (00:14 -0700)]
Fix bug #72730 - imagegammacorrect allows arbitrary write access

8 years agoFix bug#72697 - select_colors write out-of-bounds
Stanislav Malyshev [Wed, 10 Aug 2016 07:00:14 +0000 (00:00 -0700)]
Fix bug#72697 - select_colors write out-of-bounds

8 years agoFixed bug #72627: Memory Leakage In exif_process_IFD_in_TIFF
Stanislav Malyshev [Mon, 8 Aug 2016 07:49:34 +0000 (00:49 -0700)]
Fixed bug #72627: Memory Leakage In exif_process_IFD_in_TIFF

8 years agoFix bug #72750: wddx_deserialize null dereference
Stanislav Malyshev [Sun, 7 Aug 2016 23:26:52 +0000 (16:26 -0700)]
Fix bug #72750: wddx_deserialize null dereference

8 years agoFix bug #72771: ftps:// opendir wrapper is vulnerable to protocol downgrade attack
Stanislav Malyshev [Sun, 7 Aug 2016 23:17:54 +0000 (16:17 -0700)]
Fix bug #72771: ftps:// opendir wrapper is vulnerable to protocol downgrade attack

8 years agoImprove fix for #72663
Stanislav Malyshev [Sun, 7 Aug 2016 22:33:29 +0000 (15:33 -0700)]
Improve fix for #72663

8 years agoFix bug #70436: Use After Free Vulnerability in unserialize()
Stanislav Malyshev [Sun, 7 Aug 2016 22:16:28 +0000 (15:16 -0700)]
Fix bug #70436: Use After Free Vulnerability in unserialize()

8 years agoFix bug #72749: wddx_deserialize allows illegal memory access
Stanislav Malyshev [Thu, 4 Aug 2016 07:17:42 +0000 (00:17 -0700)]
Fix bug #72749: wddx_deserialize allows illegal memory access

8 years agoUpdate comment
Stanislav Malyshev [Thu, 4 Aug 2016 07:03:31 +0000 (00:03 -0700)]
Update comment

8 years agoFix bug #72708 - php_snmp_parse_oid integer overflow in memory allocation
Stanislav Malyshev [Thu, 4 Aug 2016 05:37:57 +0000 (22:37 -0700)]
Fix bug #72708 - php_snmp_parse_oid integer overflow in memory allocation

8 years agoFix bug #72681 - consume data even if we're not storing them
Stanislav Malyshev [Wed, 3 Aug 2016 07:30:12 +0000 (00:30 -0700)]
Fix bug #72681 - consume data even if we're not storing them

8 years agoFix bug #72663 - destroy broken object when unserializing
Stanislav Malyshev [Tue, 2 Aug 2016 08:08:42 +0000 (01:08 -0700)]
Fix bug #72663 - destroy broken object when unserializing

8 years ago#72085: SEGV on unknown address zif_xml_parse
Christoph M. Becker [Tue, 16 Aug 2016 22:41:31 +0000 (00:41 +0200)]
#72085: SEGV on unknown address zif_xml_parse

We better make sure that the ZVALs we're accessing as arrays are indeed
arrays.

8 years agoput missing prototype and fix ts build
Anatol Belski [Sun, 14 Aug 2016 20:35:01 +0000 (22:35 +0200)]
put missing prototype and fix ts build

8 years agoupdate NEWS
Anatol Belski [Sun, 14 Aug 2016 18:50:23 +0000 (20:50 +0200)]
update NEWS

8 years agoFixed bug #72759 Regression in pgo_pgsql
Anatol Belski [Sun, 14 Aug 2016 17:33:24 +0000 (19:33 +0200)]
Fixed bug #72759 Regression in pgo_pgsql

This is caused by the fix for #72633. Namely, lastval() throws an error,
if no nextval() was called earlier in the same session. This is by all
means correct so far, however inside a transaction it leads to an abort.
This is the opposite to MySQL's last_insert_id() which doesn't produce
any error no matter something were autoincremented or not.

To avoid existing scripts breakage in the stable branches, the previous
patch is extended to revert the transaction to the state before the lastval()
call in case of error. It is done only for 5.6 and 7.0 to retain BC. For 7.1+,
the clean behavior should persist. This is already the current behavior, when
the sequence name is explicitly passed. So there's no reason to obfuscate the
errors where this breakage is valid.

8 years agoFixed bug #72787 (json_decode reads out of bounds)
Jakub Zelenka [Sun, 14 Aug 2016 12:52:59 +0000 (13:52 +0100)]
Fixed bug #72787 (json_decode reads out of bounds)

8 years agoBug 70195
Benedict Singer [Wed, 10 Aug 2016 14:03:12 +0000 (15:03 +0100)]
Bug 70195

Many FTP-S servers now require FTP clients to re-use the SSL session
from the control connection on the data connection, to prove that the
same entity controls both connections. This patch updates PHP's FTP-S
client code to allow that possibility.

8 years agoFix #72278: getimagesize returning FALSE on valid jpg
Christoph M. Becker [Sat, 13 Aug 2016 14:02:10 +0000 (16:02 +0200)]
Fix #72278: getimagesize returning FALSE on valid jpg

getimagesize() is rather strict about the length of the marker payload data,
and fails if there are extraneous bytes before the next marker. Only a very
special case reported in bug #13213 is catered to.

libjpeg is rather resilient to such corrupted JPEG files, and raises a
recoverable error in this case. Other image processors also accept such
JPEG files, so we adapt getimagesize() to skip (but warn about) such
extraneous bytes.

8 years agoFix #72823: strtr out-of-bound access
Christoph M. Becker [Sat, 13 Aug 2016 09:39:16 +0000 (11:39 +0200)]
Fix #72823: strtr out-of-bound access

If php_strtr_array_prepare_repls() reports pattern_len == 0, we return
early to avoid OOB accesses, and because there is nothing to replace anyway.

8 years agoFix #60665: call to empty() on NULL result using PDO::FETCH_LAZY returns false
Christoph M. Becker [Fri, 12 Aug 2016 22:31:55 +0000 (00:31 +0200)]
Fix #60665: call to empty() on NULL result using PDO::FETCH_LAZY returns false

The has_property handler only checked whether a respective column name
exists, but neither whether the column value is set, nor whether it is
empty, respectively. We fix that to match the behavior of POD:FETCH_OBJ in
particular and PHP in general.

8 years agoFix URL rewriter partially
Yasuo Ohgaki [Wed, 10 Aug 2016 22:18:35 +0000 (07:18 +0900)]
Fix URL rewriter partially

8 years agoSupport "git worktree"
Yasuo Ohgaki [Wed, 10 Aug 2016 23:08:26 +0000 (08:08 +0900)]
Support "git worktree"

8 years agoAdd test for bug #69107: finfo no longer detects PHP files
Christoph M. Becker [Mon, 8 Aug 2016 16:43:33 +0000 (18:43 +0200)]
Add test for bug #69107: finfo no longer detects PHP files

8 years agoFix stream_socket_enable_crypto() test
Nikita Popov [Sun, 7 Aug 2016 16:36:32 +0000 (18:36 +0200)]
Fix stream_socket_enable_crypto() test

The whole test doesn't make any sense at all, but this only fixes
the additional warnings you get when linked against openssl w/o
SSL3.

8 years agoFix the fix (Nikita), thanks!
Kalle Sommer Nielsen [Sat, 6 Aug 2016 10:08:13 +0000 (12:08 +0200)]
Fix the fix (Nikita), thanks!

8 years agoCheck the return value of dbconvert() in mssql_guid_string(), as it may return -1...
Kalle Sommer Nielsen [Sat, 6 Aug 2016 08:17:49 +0000 (10:17 +0200)]
Check the return value of dbconvert() in mssql_guid_string(), as it may return -1 in case the conversion failed. In that case false is returned.

Also initialize buffer and buffer2 to NULL, which should fix bug #72039 (Use of uninitialised value on mssql_guid_string).

This only applies to 5.6, as we do not have mssql in 7.0 anymore

8 years agoFix #72764
Ville Hukkamaki [Fri, 5 Aug 2016 13:09:13 +0000 (16:09 +0300)]
Fix #72764

Negotiate data channel encryption after NLST command.
This is to prevent issues with IIS and ProFTPD.

8 years agoFix broken skip marker in test case
Christoph M. Becker [Thu, 4 Aug 2016 10:06:07 +0000 (12:06 +0200)]
Fix broken skip marker in test case

8 years agoClean up FR #72633
Matteo Beccati [Thu, 4 Aug 2016 07:28:58 +0000 (09:28 +0200)]
Clean up FR #72633

8 years agoFixed invalid handle error with Implicit Result Sets and bump OCI8 version.
Christopher Jones [Thu, 4 Aug 2016 04:48:07 +0000 (14:48 +1000)]
Fixed invalid handle error with Implicit Result Sets and bump OCI8 version.

8 years agoFix bug #72716 - initialize buffer before read
Stanislav Malyshev [Thu, 4 Aug 2016 05:59:01 +0000 (22:59 -0700)]
Fix bug #72716 - initialize buffer before read

8 years ago5.6.26 will be next
Ferenc Kovacs [Wed, 3 Aug 2016 23:39:37 +0000 (01:39 +0200)]
5.6.26 will be next

8 years agoimprove the check, avoid strlen on NULL
Anatol Belski [Wed, 3 Aug 2016 16:26:29 +0000 (18:26 +0200)]
improve the check, avoid strlen on NULL

8 years agoupdate NEWS
Anatol Belski [Wed, 3 Aug 2016 15:38:11 +0000 (17:38 +0200)]
update NEWS

8 years agoChanged the way MAKERNOTE is handled in case we do not have a matching signature...
Kalle Sommer Nielsen [Wed, 3 Aug 2016 15:05:31 +0000 (17:05 +0200)]
Changed the way MAKERNOTE is handled in case we do not have a matching signature (Remi).

Before this patch, exif_process_IFD_in_MAKERNOTE() would return false, then causing the rest of the EXIF parsing to be interrupted. This is a regression from earlier which was most likely a part of a security fix for MAKERNOTE.

The new behavior is to instead of stopping to parse, to continue so we can still fetch data like thumbnail and GPS, thrus allowing yet unsupported formats to parse. If EXIF's debugging mode is enabled, a notice will display in case we do not match against a valid MAKERNOTE signature.

This should temporarily fix bug #72682 (exif_read_data() fails to read all data for some images) until I get around to debug it further.

(cherry picked from commit aabcb5481d9e717df77192dab2894468b9fc63b4)

8 years agoupdate libs_versions.txt
Anatol Belski [Wed, 3 Aug 2016 13:03:41 +0000 (15:03 +0200)]
update libs_versions.txt

8 years agofix ts build
Anatol Belski [Wed, 3 Aug 2016 10:16:42 +0000 (12:16 +0200)]
fix ts build

8 years agoFix #72709: imagesetstyle() causes OOB read for empty $styles
Christoph M. Becker [Tue, 2 Aug 2016 16:41:20 +0000 (18:41 +0200)]
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.

8 years agoupdate NEWS
Anatol Belski [Tue, 2 Aug 2016 12:36:56 +0000 (14:36 +0200)]
update NEWS

8 years agocleanup table after test
Anatol Belski [Tue, 2 Aug 2016 12:35:24 +0000 (14:35 +0200)]
cleanup table after test

8 years ago- lastInsertId using Postgres Lastval() function
Pablo Santiago Sánchez [Thu, 28 Jul 2016 01:12:56 +0000 (22:12 -0300)]
- lastInsertId using Postgres Lastval() function

8 years agoRevert "Fixed bug #71219"
Nikita Popov [Sat, 30 Jul 2016 16:34:34 +0000 (18:34 +0200)]
Revert "Fixed bug #71219"

This reverts commit 14d674442ef86ad4e862228a1ff5ecd322ae7759.

I misread the discussion on the bug -- this is not the correct
fix. However the other proposed fix does not work either, so just
reverting for now.

8 years agoFixed bug #71219
Nikita Popov [Sat, 30 Jul 2016 16:21:19 +0000 (18:21 +0200)]
Fixed bug #71219

8 years agoAdd missing TSRMLS_FETCH()
Nikita Popov [Sat, 30 Jul 2016 14:28:42 +0000 (16:28 +0200)]
Add missing TSRMLS_FETCH()

8 years agoFixed bug #72142
Nikita Popov [Sat, 30 Jul 2016 13:10:54 +0000 (15:10 +0200)]
Fixed bug #72142

8 years agofixes bad address given to onig_error_code_to_str
ju1ius [Sat, 30 Jul 2016 04:08:25 +0000 (06:08 +0200)]
fixes bad address given to onig_error_code_to_str

Closes bug #72710

(cherry picked from commit 0fb7eb6723bcc6fd98053911543e801edb5ab763)

8 years agoFix #71894: AddressSanitizer: global-buffer-overflow in zif_cal_from_jd
Christoph M. Becker [Thu, 28 Jul 2016 22:24:46 +0000 (00:24 +0200)]
Fix #71894: AddressSanitizer: global-buffer-overflow in zif_cal_from_jd

Julian days < 347998 denote invalid Jewish calendar dates, so
cal_from_jd($jd, CAL_JEWISH) and jdmonthname($jd, CAL_MONTH_JEWISH) should
actually fail. For BC we don't yet let them though, but we fix the OOB read
that happens in this case, and we also adjust cal_from_jd()'s return value
to have empty strings for "abbrevdayname" and "dayname" instead of "Sun"/
"Sunday" and NULL for "dow" instead of 0, which doesn't make any sense.

8 years agoImplement FR #65462: Please add tests for gregorian and jewish overflow fixes
Christoph M. Becker [Thu, 28 Jul 2016 17:59:14 +0000 (19:59 +0200)]
Implement FR #65462: Please add tests for gregorian and jewish overflow fixes

8 years agoFix #67976: cal_days_month() fails for final month of the French calendar
Christoph M. Becker [Thu, 28 Jul 2016 17:13:58 +0000 (19:13 +0200)]
Fix #67976: cal_days_month() fails for final month of the French calendar

The French calendar ends on 0014-13-05, so trying to calculate the Julian
day of 0015-01-01 fails. We cater to that by returning the hard-coded value.