]> granicus.if.org Git - php/log
php
11 years agoMerge branch 'PHP-5.6'
Anatol Belski [Mon, 10 Mar 2014 13:18:06 +0000 (14:18 +0100)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  updated libmagic.patch
  updated libmagic.patch

11 years agoupdated libmagic.patch
Anatol Belski [Mon, 10 Mar 2014 13:17:47 +0000 (14:17 +0100)]
updated libmagic.patch

11 years agoMerge branch 'PHP-5.5' into PHP-5.6
Anatol Belski [Mon, 10 Mar 2014 13:14:01 +0000 (14:14 +0100)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  updated libmagic.patch

11 years agoMerge branch 'PHP-5.4' into PHP-5.5
Anatol Belski [Mon, 10 Mar 2014 13:13:15 +0000 (14:13 +0100)]
Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  updated libmagic.patch

11 years agoupdated libmagic.patch
Anatol Belski [Mon, 10 Mar 2014 13:12:20 +0000 (14:12 +0100)]
updated libmagic.patch

11 years agofix ZTS
Anatol Belski [Mon, 10 Mar 2014 11:24:32 +0000 (12:24 +0100)]
fix ZTS

11 years agoMerge branch 'PHP-5.6'
Pierre Joye [Mon, 10 Mar 2014 11:19:36 +0000 (12:19 +0100)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  update NEWS
  fix #66872, invalid argument crashes gmp_testbit
  fix #66872, invalid argument crashes gmp_testbit
  add vc12 (2013)

11 years agoMerge branch 'master' of git.php.net:php-src
Pierre Joye [Mon, 10 Mar 2014 11:19:32 +0000 (12:19 +0100)]
Merge branch 'master' of git.php.net:php-src

# By Andrey Hristov (1) and others
# Via Andrey Hristov (3) and others
* 'master' of git.php.net:php-src:
  Fix indentation
  Do not remove *.1, it's not generated by make but configure
  Fix typo: entory -> entry

11 years agoMerge branch 'PHP-5.5' into PHP-5.6
Pierre Joye [Mon, 10 Mar 2014 11:18:57 +0000 (12:18 +0100)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  update NEWS
  fix #66872, invalid argument crashes gmp_testbit
  fix #66872, invalid argument crashes gmp_testbit
  add vc12 (2013)

Conflicts:
ext/gmp/gmp.c

11 years agoupdate NEWS
Pierre Joye [Mon, 10 Mar 2014 11:12:46 +0000 (12:12 +0100)]
update NEWS

11 years agoMerge branch 'PHP-5.4' into PHP-5.5
Pierre Joye [Mon, 10 Mar 2014 11:10:57 +0000 (12:10 +0100)]
Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  fix #66872, invalid argument crashes gmp_testbit
  fix #66872, invalid argument crashes gmp_testbit
  add vc12 (2013)

Conflicts:
win32/build/confutils.js

11 years agofix #66872, invalid argument crashes gmp_testbit
Pierre Joye [Mon, 10 Mar 2014 11:07:58 +0000 (12:07 +0100)]
fix #66872, invalid argument crashes gmp_testbit

11 years agofix #66872, invalid argument crashes gmp_testbit
Pierre Joye [Mon, 10 Mar 2014 11:06:40 +0000 (12:06 +0100)]
fix #66872, invalid argument crashes gmp_testbit

11 years agoMerge branch 'PHP-5.4' of git.php.net:php-src into PHP-5.4
Pierre Joye [Mon, 10 Mar 2014 11:04:04 +0000 (12:04 +0100)]
Merge branch 'PHP-5.4' of git.php.net:php-src into PHP-5.4

# By Dmitry Panin (1) and Remi Collet (1)
# Via Nikita Popov
* 'PHP-5.4' of git.php.net:php-src:
  Fix HTML entity table generation
  Set default Digest Message to use SHA1 instead of MD5 in openssl tests as MD5 signature are now rejected by newer openssl Version.

11 years agoMerge branch 'PHP-5.6'
Andrey Hristov [Mon, 10 Mar 2014 10:55:53 +0000 (12:55 +0200)]
Merge branch 'PHP-5.6'

11 years agoMerge branch 'PHP-5.5' into PHP-5.6
Andrey Hristov [Mon, 10 Mar 2014 10:53:17 +0000 (12:53 +0200)]
Merge branch 'PHP-5.5' into PHP-5.6

11 years agoFix indentation
Andrey Hristov [Mon, 10 Mar 2014 10:52:56 +0000 (12:52 +0200)]
Fix indentation

11 years agoMerge branch 'PHP-5.6'
Xinchen Hui [Mon, 10 Mar 2014 07:55:20 +0000 (15:55 +0800)]
Merge branch 'PHP-5.6'

11 years agoMerge branch 'PHP-5.5' into PHP-5.6
Xinchen Hui [Mon, 10 Mar 2014 07:55:05 +0000 (15:55 +0800)]
Merge branch 'PHP-5.5' into PHP-5.6

11 years agoDo not remove *.1, it's not generated by make but configure
Xinchen Hui [Mon, 10 Mar 2014 07:54:20 +0000 (15:54 +0800)]
Do not remove *.1, it's not generated by make but configure

11 years agoMerge branch 'PHP-5.6'
Lior Kaplan [Sun, 9 Mar 2014 21:07:48 +0000 (23:07 +0200)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Fix typo: entory -> entry

11 years agoFix typo: entory -> entry
Lior Kaplan [Sun, 9 Mar 2014 20:58:04 +0000 (22:58 +0200)]
Fix typo: entory -> entry

11 years agoMerge branch 'PHP-5.6'
Pierre Joye [Sun, 9 Mar 2014 20:18:23 +0000 (21:18 +0100)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  update news
  - fix #66869, Invalid 2nd argument crashes imageaffinematrixget
  add vc12 (2013)

11 years agoMerge branch 'PHP-5.5' into PHP-5.6
Pierre Joye [Sun, 9 Mar 2014 20:17:06 +0000 (21:17 +0100)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  update news
  - fix #66869, Invalid 2nd argument crashes imageaffinematrixget
  add vc12 (2013)

Conflicts:
win32/build/confutils.js

11 years agoupdate news
Pierre Joye [Sun, 9 Mar 2014 20:13:15 +0000 (21:13 +0100)]
update news

11 years ago- fix #66869, Invalid 2nd argument crashes imageaffinematrixget
Pierre Joye [Sun, 9 Mar 2014 20:12:19 +0000 (21:12 +0100)]
- fix #66869, Invalid 2nd argument crashes imageaffinematrixget

11 years agoMerge branch 'PHP-5.5' of git.php.net:php-src into PHP-5.5
Pierre Joye [Sun, 9 Mar 2014 20:11:19 +0000 (21:11 +0100)]
Merge branch 'PHP-5.5' of git.php.net:php-src into PHP-5.5

# By Remi Collet (6) and others
# Via Nikita Popov (1) and others
* 'PHP-5.5' of git.php.net:php-src:
  Fixed null termination
  Updated NEWS for #65545
  Add fread(length) method
  Fix HTML entity table generation
  Fix order in NEWS
  Add CVE ref (not known at release time)
  Fix NEWS for 5.5.11 fix (really not in 5.5.10)
  5.5.10 release date for NEWS
  Set default Digest Message to use SHA1 instead of MD5 in openssl tests as MD5 signature are now rejected by newer openssl Version.
  NEWS
  Fixed Bug #66815 imagecrop(): insufficient fix for NULL defer CVE-2013-7327

11 years agoMerge branch 'master' of git.php.net:php-src
Pierre Joye [Sun, 9 Mar 2014 16:06:57 +0000 (17:06 +0100)]
Merge branch 'master' of git.php.net:php-src

# By Nikita Popov (10) and others
# Via Remi Collet (9) and others
* 'master' of git.php.net:php-src: (41 commits)
  updated NEWS
  removed the libsqlite patch as it's not relevant anymore
  updated bundled libsqlite to 3.8.3.1
  Fixed mcrypt test case
  add OPSYS_Z_CPM missing constant
  Update php.ini files (new openssl directives)
  Fixed null termination
  Updated NEWS for #65545
  Updated NEWS for #65545
  Add fread(length) method
  Updated news for #66822
  Allow T_POW in constant expressions
  Fix typo
  Fix #66698: Add fnv1a32 and fnv1a64 hash options
  Fix HTML entity table generation
  Add test for bug #62102 / RFC 2144
  Whitespace.
  Misc cleanup including adding the version number
  Fix order in NEWS
  Add CVE ref (not known at release time)
  ...

11 years agoMerge branch 'PHP-5.6'
Anatol Belski [Sun, 9 Mar 2014 12:06:51 +0000 (13:06 +0100)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  updated NEWS

11 years agoupdated NEWS
Anatol Belski [Sun, 9 Mar 2014 12:06:32 +0000 (13:06 +0100)]
updated NEWS

11 years agoMerge branch 'PHP-5.6'
Anatol Belski [Sun, 9 Mar 2014 12:04:14 +0000 (13:04 +0100)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  removed the libsqlite patch as it's not relevant anymore

11 years agoremoved the libsqlite patch as it's not relevant anymore
Anatol Belski [Sun, 9 Mar 2014 12:03:43 +0000 (13:03 +0100)]
removed the libsqlite patch as it's not relevant anymore

11 years agoMerge branch 'PHP-5.6'
Anatol Belski [Sun, 9 Mar 2014 12:02:33 +0000 (13:02 +0100)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  updated bundled libsqlite to 3.8.3.1

11 years agoupdated bundled libsqlite to 3.8.3.1
Anatol Belski [Sun, 9 Mar 2014 12:01:48 +0000 (13:01 +0100)]
updated bundled libsqlite to 3.8.3.1

11 years agoUpdated test case with expected output
Tjerk Meesters [Sat, 8 Mar 2014 08:17:30 +0000 (16:17 +0800)]
Updated test case with expected output

11 years agoFixed mcrypt test case
Tjerk Meesters [Sat, 8 Mar 2014 08:16:46 +0000 (16:16 +0800)]
Fixed mcrypt test case

11 years agoMerge branch 'PHP-5.6'
Remi Collet [Fri, 7 Mar 2014 13:10:31 +0000 (14:10 +0100)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  add OPSYS_Z_CPM missing constant

11 years agoadd OPSYS_Z_CPM missing constant
Remi Collet [Fri, 7 Mar 2014 13:10:16 +0000 (14:10 +0100)]
add OPSYS_Z_CPM missing constant

11 years agoMerge branch 'PHP-5.6'
Daniel Lowrey [Fri, 7 Mar 2014 12:26:48 +0000 (05:26 -0700)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Update php.ini files (new openssl directives)

11 years agoUpdate php.ini files (new openssl directives)
Daniel Lowrey [Fri, 7 Mar 2014 12:26:37 +0000 (05:26 -0700)]
Update php.ini files (new openssl directives)

11 years agoMerge branch 'PHP-5.6'
Tjerk Meesters [Fri, 7 Mar 2014 11:24:50 +0000 (19:24 +0800)]
Merge branch 'PHP-5.6'

11 years agoMerge branch 'PHP-5.5' into PHP-5.6
Tjerk Meesters [Fri, 7 Mar 2014 11:24:02 +0000 (19:24 +0800)]
Merge branch 'PHP-5.5' into PHP-5.6

11 years agoFixed null termination
Tjerk Meesters [Fri, 7 Mar 2014 11:23:46 +0000 (19:23 +0800)]
Fixed null termination

11 years agoMerge branch 'PHP-5.6'
Tjerk Meesters [Fri, 7 Mar 2014 11:01:53 +0000 (19:01 +0800)]
Merge branch 'PHP-5.6'

11 years agoUpdated NEWS for #65545
Tjerk Meesters [Fri, 7 Mar 2014 10:57:55 +0000 (18:57 +0800)]
Updated NEWS for #65545

11 years agoMerge branch 'PHP-5.5' into PHP-5.6
Tjerk Meesters [Fri, 7 Mar 2014 10:57:36 +0000 (18:57 +0800)]
Merge branch 'PHP-5.5' into PHP-5.6

11 years agoUpdated NEWS for #65545
Tjerk Meesters [Fri, 7 Mar 2014 10:51:16 +0000 (18:51 +0800)]
Updated NEWS for #65545

11 years agoAdd fread(length) method
datibbaw [Wed, 12 Feb 2014 06:06:29 +0000 (14:06 +0800)]
Add fread(length) method

Fixed off-by-one write bug

Added test

11 years agoMerge branch 'PHP-5.6'
Bob Weinand [Fri, 7 Mar 2014 06:41:16 +0000 (07:41 +0100)]
Merge branch 'PHP-5.6'

11 years agoInclude the T_POW operator in constant scalar expressions
Bob Weinand [Fri, 7 Mar 2014 06:39:20 +0000 (07:39 +0100)]
Include the T_POW operator in constant scalar expressions

11 years agoUpdated news for #66822
Tjerk Meesters [Thu, 6 Mar 2014 00:33:01 +0000 (08:33 +0800)]
Updated news for #66822

11 years agoAllow T_POW in constant expressions
Tjerk Meesters [Thu, 6 Mar 2014 00:31:01 +0000 (08:31 +0800)]
Allow T_POW in constant expressions

11 years agoFix typo
Christopher Jones [Fri, 7 Mar 2014 00:49:11 +0000 (16:49 -0800)]
Fix typo

11 years agoMerge branch 'PHP-5.6'
Nikita Popov [Thu, 6 Mar 2014 22:39:21 +0000 (23:39 +0100)]
Merge branch 'PHP-5.6'

11 years agoFix #66698: Add fnv1a32 and fnv1a64 hash options
Michael M Slusarz [Wed, 12 Feb 2014 09:55:49 +0000 (02:55 -0700)]
Fix #66698: Add fnv1a32 and fnv1a64 hash options

11 years agoMerge branch 'PHP-5.6'
Nikita Popov [Thu, 6 Mar 2014 22:15:37 +0000 (23:15 +0100)]
Merge branch 'PHP-5.6'

11 years agoMerge branch 'PHP-5.5' into PHP-5.6
Nikita Popov [Thu, 6 Mar 2014 22:15:30 +0000 (23:15 +0100)]
Merge branch 'PHP-5.5' into PHP-5.6

11 years agoMerge branch 'PHP-5.4' into PHP-5.5
Nikita Popov [Thu, 6 Mar 2014 22:12:41 +0000 (23:12 +0100)]
Merge branch 'PHP-5.4' into PHP-5.5

11 years agoFix HTML entity table generation
Dmitry Panin [Wed, 12 Feb 2014 00:39:27 +0000 (16:39 -0800)]
Fix HTML entity table generation

11 years agoMerge branch 'PHP-5.6'
Nikita Popov [Thu, 6 Mar 2014 21:40:31 +0000 (22:40 +0100)]
Merge branch 'PHP-5.6'

11 years agoAdd test for bug #62102 / RFC 2144
Andrey Andreev [Wed, 5 Mar 2014 10:47:11 +0000 (12:47 +0200)]
Add test for bug #62102 / RFC 2144

Using test vectors from RFC 2144, section B.1 (http://tools.ietf.org/rfc/rfc2144.txt)

11 years agoWhitespace.
Christopher Jones [Thu, 6 Mar 2014 18:21:36 +0000 (10:21 -0800)]
Whitespace.

11 years agoMisc cleanup including adding the version number
Christopher Jones [Thu, 6 Mar 2014 18:16:42 +0000 (10:16 -0800)]
Misc cleanup including adding the version number

11 years agoMerge branch 'PHP-5.6'
Remi Collet [Thu, 6 Mar 2014 10:02:48 +0000 (11:02 +0100)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Fix order in NEWS
  Add CVE ref (not known at release time)
  Fix NEWS for 5.5.11 fix (really not in 5.5.10)
  5.5.10 release date for NEWS

11 years agoMerge branch 'PHP-5.5' into PHP-5.6
Remi Collet [Thu, 6 Mar 2014 10:02:40 +0000 (11:02 +0100)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  Fix order in NEWS
  Add CVE ref (not known at release time)
  Fix NEWS for 5.5.11 fix (really not in 5.5.10)
  5.5.10 release date for NEWS

11 years agoFix order in NEWS
Remi Collet [Thu, 6 Mar 2014 09:55:10 +0000 (10:55 +0100)]
Fix order in NEWS

11 years agoAdd CVE ref (not known at release time)
Remi Collet [Thu, 6 Mar 2014 09:54:18 +0000 (10:54 +0100)]
Add CVE ref (not known at release time)

11 years agoFix NEWS for 5.5.11 fix (really not in 5.5.10)
Remi Collet [Thu, 6 Mar 2014 09:53:07 +0000 (10:53 +0100)]
Fix NEWS for 5.5.11 fix (really not in 5.5.10)

11 years ago5.5.10 release date for NEWS
Julien Pauli [Thu, 6 Mar 2014 09:18:10 +0000 (10:18 +0100)]
5.5.10 release date for NEWS

11 years agoMerge branch 'PHP-5.6'
Remi Collet [Thu, 6 Mar 2014 09:16:40 +0000 (10:16 +0100)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Set default Digest Message to use SHA1 instead of MD5 in openssl tests as MD5 signature are now rejected by newer openssl Version.
  Add NEWS/UPGRADING notes (openssl + curl)

11 years agoMerge branch 'PHP-5.5' into PHP-5.6
Remi Collet [Thu, 6 Mar 2014 09:16:30 +0000 (10:16 +0100)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  Set default Digest Message to use SHA1 instead of MD5 in openssl tests as MD5 signature are now rejected by newer openssl Version.

11 years agoMerge branch 'PHP-5.4' into PHP-5.5
Remi Collet [Thu, 6 Mar 2014 09:16:16 +0000 (10:16 +0100)]
Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  Set default Digest Message to use SHA1 instead of MD5 in openssl tests as MD5 signature are now rejected by newer openssl Version.

11 years agoSet default Digest Message to use SHA1 instead of MD5 in openssl tests
Remi Collet [Thu, 6 Mar 2014 09:14:08 +0000 (10:14 +0100)]
Set default Digest Message to use SHA1 instead of MD5 in openssl tests
as MD5 signature are now rejected by newer openssl Version.

Noticed in RHEL-7 and Fedora 21 build.

11 years agoAdd NEWS/UPGRADING notes (openssl + curl)
Daniel Lowrey [Wed, 5 Mar 2014 17:49:21 +0000 (10:49 -0700)]
Add NEWS/UPGRADING notes (openssl + curl)

11 years agoMerge branch 'PHP-5.6'
Daniel Lowrey [Wed, 5 Mar 2014 17:23:54 +0000 (10:23 -0700)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  Add encrypted server SNI support
  Raise timeout to 2s, reworded ssl timeout warning
  Refactor + reorganize openssl files

11 years agoAdd encrypted server SNI support
Daniel Lowrey [Wed, 5 Mar 2014 15:50:23 +0000 (10:50 -0500)]
Add encrypted server SNI support

- New "SNI_server_certs" context option maps host names to
  appropriate certs should client handshakes advertise the
  SNI extension:

    $ctx = stream_context_create(["ssl" => [
        "local_cert" => "/path/to/cert.pem",
        "SNI_server_certs" => [
            "domain1.com" => "/path/to/domain1.pem",
            "*.domain2.com" => "/path/to/domain2.pem",
            "domain3.com" => "/path/to/domain3.pem"
        ]
    ]]);

- Prefixing a "*." will utilize the matching cert if a client
  requests the primary host name or any subdomain thereof. So
  in the above example our "domain2.pem" will be used for both
  requests to "domain2.com" -and- "subdomain.domain2.com"
- The "SNI_server_certs" ctx option has no effect for client
  streams.
- SNI support is enabled by default as of 5.6 for both servers
  and clients. Servers must specify the "SNI_server_certs" array
  to actually use the SNI extension, though.
- If the `"SNI_enabled" => false` ctx option is also passed then
  "SNI_server_certs" has no effect.
- While supporting SNI by itself is enough to successfully
  negotiate the TLS handshake with many clients, servers MUST
  still specify a "local_cert" ctx option or run the risk of
  connection failures from clients that do not support the SNI
  extension.

11 years agoRaise timeout to 2s, reworded ssl timeout warning
datibbaw [Tue, 4 Mar 2014 03:02:18 +0000 (11:02 +0800)]
Raise timeout to 2s, reworded ssl timeout warning

11 years agoRefactor + reorganize openssl files
Daniel Lowrey [Tue, 4 Mar 2014 01:57:33 +0000 (18:57 -0700)]
Refactor + reorganize openssl files

- All streams-related code now lives in xp_ssl.c. Previously
  stream code was split across both openssl.c and xp_ssl.c
- Folded superfluous php_openssl_structs.h into xp_ssl.c
- Server-specific options now set on SSL_CTX instead of SSL
- Deprecate SNI_server_name ctx option
- Miscellaneous refactoring

11 years agoMerge branch 'PHP-5.6' of git.php.net:php-src into PHP-5.6
Andrey Hristov [Wed, 5 Mar 2014 14:47:16 +0000 (16:47 +0200)]
Merge branch 'PHP-5.6' of git.php.net:php-src into PHP-5.6

11 years agoMerge branch 'master' of git.php.net:php-src
Andrey Hristov [Wed, 5 Mar 2014 14:46:45 +0000 (16:46 +0200)]
Merge branch 'master' of git.php.net:php-src

11 years agoMerge branch 'PHP-5.6'
Nikita Popov [Wed, 5 Mar 2014 14:38:56 +0000 (15:38 +0100)]
Merge branch 'PHP-5.6'

11 years agoAdd NEWS entry for mcrypt changes
Nikita Popov [Wed, 5 Mar 2014 14:36:00 +0000 (15:36 +0100)]
Add NEWS entry for mcrypt changes

11 years agoUse zpp for accepting encryption mode string
Nikita Popov [Wed, 5 Mar 2014 14:18:27 +0000 (15:18 +0100)]
Use zpp for accepting encryption mode string

Leaving the non-zpp usage for the mcrypt_{MODE} functions, as
they're deprecated and I'm too lazy to update all their tests.

11 years agoRemove a number of macros that are no longer used
Nikita Popov [Wed, 5 Mar 2014 14:09:25 +0000 (15:09 +0100)]
Remove a number of macros that are no longer used

11 years agoProvide expected IV length in IV error messages
Nikita Popov [Wed, 5 Mar 2014 11:42:01 +0000 (12:42 +0100)]
Provide expected IV length in IV error messages

11 years agoCall mcrypt_module_close on error
Nikita Popov [Sun, 2 Mar 2014 22:26:46 +0000 (23:26 +0100)]
Call mcrypt_module_close on error

11 years agoPrint supported key sizes in error message
Nikita Popov [Sun, 2 Mar 2014 22:23:12 +0000 (23:23 +0100)]
Print supported key sizes in error message

11 years agoClean up do_crypt code
Nikita Popov [Sat, 1 Mar 2014 23:42:13 +0000 (00:42 +0100)]
Clean up do_crypt code

Avoid unnecessary alloc/copy/free cycles and clean up structure in
general. Add a few extra checks for the key length.

11 years agoAbort on invalid key size
Nikita Popov [Sat, 1 Mar 2014 22:51:03 +0000 (23:51 +0100)]
Abort on invalid key size

Previously an incorrectly sized key was either silently padded
with NUL bytes or truncated. Especially the silent nature of this
behavior makes it extremely easy to use weak encryption. A common
mistake - which has also been extensively made in our tests - is
to use a password instead of a key.

Incorrectly sized keys will now be rejected.

11 years agoAbort on missing IV if the enc_mode requires it
Nikita Popov [Sat, 1 Mar 2014 14:42:07 +0000 (15:42 +0100)]
Abort on missing IV if the enc_mode requires it

Previously the code fell back on using a NUL IV if no IV was
passed and the encryption mode required it. This is dangerous and
makes no sense from a practical point of view (as you could just
as well use ECB then).

11 years agoAbort on invalid IV size
Nikita Popov [Sat, 1 Mar 2014 14:29:20 +0000 (15:29 +0100)]
Abort on invalid IV size

Previously, if the size of the IV did not match the block size
mcrypt would throw a warning and fall back to a NUL IV. This
behavior is both dangerous and makes no practical sense.

mcrypt_encrypt etc. will now return false if the IV has an incorrect
size.

11 years agoMerge branch 'PHP-5.6'
Andrey Hristov [Wed, 5 Mar 2014 14:24:43 +0000 (16:24 +0200)]
Merge branch 'PHP-5.6'

11 years agoRefactor the result set data structures. Move more to the buffered and unbuffered
Andrey Hristov [Wed, 5 Mar 2014 14:22:23 +0000 (16:22 +0200)]
Refactor the result set data structures. Move more to the buffered and unbuffered
substructures. Add methods to these too. Preparing for pluggable interface for
returning data to the engine (zvals, c-style, something else)

11 years agoMerge branch 'PHP-5.6'
Remi Collet [Wed, 5 Mar 2014 09:46:01 +0000 (10:46 +0100)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  NEWS

11 years agoMerge branch 'master' of git.php.net:php-src
Pierre Joye [Wed, 5 Mar 2014 09:45:58 +0000 (10:45 +0100)]
Merge branch 'master' of git.php.net:php-src

# By krakjoe (558) and others
# Via Anatol Belski (126) and others
* 'master' of git.php.net:php-src: (1484 commits)
  NEWS
  NEWS
  Fixed Bug #66820 out-of-bounds memory access in fileinfo
  Improves fix for memory leak, keep in sync with upstream.
  Add notice about tsrm_virtual_cwd.h moved to zend_virtual_cwd.h as this introduce need for awfull hacks...
  Fixed NEWS for #60602
  Fixed news for #60602
  Updated news for #60602
  proc_open(): separate environment values that aren't strings
  Added DateTimeImmutable::createFromMutable.
  Sort alphabetically
  Fixed NEWS.
  Capture peer cert even if verify fails
  Windows cert verify improvements + leak fixes
  turn off some false positives
  support for static analyzers other than visual studio
  fix wording
  reveal more info on the configure options
  Updated news for #66535 and #66109
  Updated news for #66535 and #66109
  ...

11 years agoNEWS
Remi Collet [Wed, 5 Mar 2014 09:45:50 +0000 (10:45 +0100)]
NEWS

11 years agoMerge branch 'PHP-5.6'
Remi Collet [Wed, 5 Mar 2014 09:44:12 +0000 (10:44 +0100)]
Merge branch 'PHP-5.6'

* PHP-5.6:
  NEWS
  Fixed Bug #66815 imagecrop(): insufficient fix for NULL defer CVE-2013-7327

11 years agoMerge branch 'PHP-5.5' into PHP-5.6
Remi Collet [Wed, 5 Mar 2014 09:44:04 +0000 (10:44 +0100)]
Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  NEWS
  Fixed Bug #66815 imagecrop(): insufficient fix for NULL defer CVE-2013-7327

11 years agoNEWS
Remi Collet [Wed, 5 Mar 2014 09:43:45 +0000 (10:43 +0100)]
NEWS

11 years agoFixed Bug #66815 imagecrop(): insufficient fix for NULL defer CVE-2013-7327
Remi Collet [Wed, 5 Mar 2014 09:40:36 +0000 (10:40 +0100)]
Fixed Bug #66815 imagecrop(): insufficient fix for NULL defer CVE-2013-7327

This amends commit 8f4a537, which aimed to correct NULL dereference because of
missing check of gdImageCreateTrueColor() / gdImageCreate() return value.  That
commit checks for negative crop rectangle width and height, but
gdImageCreate*() can also return NULL when width * height overflows.  Hence
NULL deref is still possible, as gdImageSaveAlpha() and gdImagePaletteCopy()
is called before dst == NULL check.

This moves NULL check to happen right after gdImageCreate*().  It also removes
width and height check before gdImageCreate*(), as the same check is done by
image create functions (with an extra warning).

From thoger redhat com