Bug #61139 [ReO->Csd]: gzopen leaks when specifying invalid mode
Edit report at https://bugs.php.net/bug.php?id=61139&edit=1
ID: 61139
Updated by: nikic@php.net
Reported by: nikic@php.net
Summary: gzopen leaks when specifying invalid mode
-Status: Re-Opened
+Status: Closed
Type: Bug
Package: Zlib related
PHP Version: Irrelevant
Assigned To: nikic
Block user comment: N
Private report: N
New Comment:
The invalid move occurs within zlib, so this is rather a 3rd party issue. The only thing we could do
here is manually check whether the mode is valid.
Previous Comments:
------------------------------------------------------------------------
[2012-07-29 06:17:03] laruence@php.net
valgrind complains :
==21723== Conditional jump or move depends on uninitialised value(s)
==21723== at 0x3055402F6A: ??? (in /usr/lib64/libz.so.1.2.3)
==21723== by 0x30554040A0: ??? (in /usr/lib64/libz.so.1.2.3)
==21723== by 0x3055404184: gzdopen (in /usr/lib64/libz.so.1.2.3)
==21723== by 0x572A0D: php_stream_gzopen (zlib_fopen_wrapper.c:137)
==21723== by 0x5711C7: zif_gzopen (zlib.c:592)
==21723== by 0x9A424E: zend_do_fcall_common_helper_SPEC
(zend_vm_execute.h:642)
==21723== by 0x9ADB2B: ZEND_DO_FCALL_SPEC_CONST_HANDLER
(zend_vm_execute.h:2219)
==21723== by 0x9A1E43: execute (zend_vm_execute.h:410)
==21723== by 0x95C1A9: zend_execute_scripts (zend.c:1289)
==21723== by 0x89AAF3: php_execute_script (main.c:2473)
==21723== by 0xAE4268: do_cli (php_cli.c:988)
==21723== by 0xAE5700: main (php_cli.c:1364)
==21723==
------------------------------------------------------------------------
[2012-07-24 23:37:18] rasmus@php.net
Automatic comment on behalf of nikic
Revision: http://git.php.net/?p=php-src.git;a=commit;h=ecd13fd184ab46136d893338748fcda6c1458c7f
Log: Fix bug #61139 gzopen leaks when specifying invalid mode
------------------------------------------------------------------------
[2012-04-18 09:46:07] laruence@php.net
Automatic comment on behalf of nikic
Revision: http://git.php.net/?p=php-src.git;a=commit;h=ecd13fd184ab46136d893338748fcda6c1458c7f
Log: Fix bug #61139 gzopen leaks when specifying invalid mode
------------------------------------------------------------------------
[2012-03-02 14:16:40] nikic@php.net
Automatic comment from SVN on behalf of nikic
Revision: http://svn.php.net/viewvc/?view=revision&revision=323819
Log: Merge: Fix bug #61139: gzopen leaks when specifying invalid mode
------------------------------------------------------------------------
[2012-02-19 14:41:21] nikic@php.net
Keeping open til merged to 5.4.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=61139
--
Edit this bug report at https://bugs.php.net/bug.php?id=61139&edit=1
Thread (5 messages)