Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37205 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49489 invoked from network); 23 Apr 2008 14:56:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Apr 2008 14:56:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=tony@daylessday.org; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tony@daylessday.org; sender-id=pass Received-SPF: pass (pb1.pair.com: domain daylessday.org designates 89.208.40.236 as permitted sender) X-PHP-List-Original-Sender: tony@daylessday.org X-Host-Fingerprint: 89.208.40.236 mail.daylessday.org Linux 2.6 Received: from [89.208.40.236] ([89.208.40.236:37733] helo=daylessday.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 56/52-36942-80E4F084 for ; Wed, 23 Apr 2008 10:56:09 -0400 Received: from [192.168.3.91] (unknown [212.42.62.198]) by daylessday.org (Postfix) with ESMTP id BD5866400F2 for ; Wed, 23 Apr 2008 18:56:05 +0400 (MSD) Message-ID: <480F4E01.9080905@daylessday.org> Date: Wed, 23 Apr 2008 18:56:01 +0400 User-Agent: Thunderbird 2.0.0.12 (X11/20080226) MIME-Version: 1.0 To: php-dev Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: valgrind reports a problem in ext/session/tests/session_decode_error2.phpt From: tony@daylessday.org (Antony Dovgal) Just a minor heads up. There seem to be a problem in the unserializer discovered with help of ext/session/tests/session_decode_error2.phpt (see below). I don't know this part of the code good enough to fix it, so whoever does - please take a look at it. Thanks. ==18510== Invalid read of size 1 ==18510== at 0x7C16C2: php_var_unserialize (var_unserializer.c:514) ==18510== by 0x7C3C04: process_nested_data (var_unserializer.re:281) ==18510== by 0x7C2230: php_var_unserialize (var_unserializer.re:565) ==18510== by 0x6483B9: ps_srlzr_decode_php (session.c:588) ==18510== by 0x648B7A: php_session_decode (session.c:654) ==18510== by 0x64E575: zif_session_decode (session.c:1802) ==18510== by 0x8B2987: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:189) ==18510== by 0x8B8100: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:1399) ==18510== by 0x8B2242: execute (zend_vm_execute.h:91) ==18510== by 0x883710: zend_execute_scripts (zend.c:1192) ==18510== by 0x80DF5E: php_execute_script (main.c:2077) ==18510== by 0x924FC5: main (php_cli.c:1139) ==18510== Address 0x919d45e is 0 bytes after a block of size 14 alloc'd ==18510== at 0x4C22DAB: malloc (vg_replace_malloc.c:207) ==18510== by 0x85EA7F: _emalloc (zend_alloc.c:2281) ==18510== by 0x85EFD7: _estrndup (zend_alloc.c:2423) ==18510== by 0x78CF07: zif_substr (string.c:2213) ==18510== by 0x8B2987: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:189) ==18510== by 0x8B8100: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:1399) ==18510== by 0x8B2242: execute (zend_vm_execute.h:91) ==18510== by 0x883710: zend_execute_scripts (zend.c:1192) ==18510== by 0x80DF5E: php_execute_script (main.c:2077) ==18510== by 0x924FC5: main (php_cli.c:1139) -- Wbr, Antony Dovgal