Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unserialize invalid random data [tests/034.phpt] fails on alpine linux with php 7.3 #136

Open
ncopa opened this issue Jun 14, 2019 · 2 comments
Labels

Comments

@ncopa
Copy link

ncopa commented Jun 14, 2019

PHP         : /usr/bin/php7                                                                                                                                                                                                                                                                                                                         
PHP_SAPI    : cli                                                                                                                                                                                                                                                                                                                                   
PHP_VERSION : 7.3.6                                                        
ZEND_VERSION: 3.3.6                                                                                                                                                                                                                                                                                                                                 
PHP_OS      : Linux - Linux ncopa-edge-x86_64 4.9.65 #1-Alpine SMP Fri Nov 24 17:48:25 GMT 2017 x86_64                                                                                                                                                                                                                                              
INI actual  : /home/ncopa/aports/community/php7-pecl-msgpack/src/msgpack-2.0.3/tmp-php.ini                                                                                
More .INIs  :                                                                                                                                                                                                                                                                                                                                       
CWD         : /home/ncopa/aports/community/php7-pecl-msgpack/src/msgpack-2.0.3                                                                                                                                                                                                                                                                      
Extra dirs  :                                                                      
VALGRIND    : Not used                                                        
...

=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped    :    0
Exts tested     :   14
---------------------------------------------------------------------

Number of tests :  115               111
Tests skipped   :    4 (  3.5%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :    1 (  0.9%) (  0.9%)
Expected fail   :    0 (  0.0%) (  0.0%)
Tests passed    :  110 ( 95.7%) ( 99.1%)
---------------------------------------------------------------------
Time taken      :    5 seconds
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Unserialize invalid random data [tests/034.phpt]
=====================================================================
@m6w6 m6w6 mentioned this issue Dec 18, 2019
@m6w6 m6w6 added the bug label Dec 18, 2019
@travispaul
Copy link

FWIW this is also causing a segfault. For example here's a simplified reproducer script:

<?php
  // Program terminated with signal SIGSEGV, Segmentation fault.
  // #0  0x00000000af8ce5df in zend_unmangle_property_name_ex ()
  $data = '85000101020203a774657374696e6779d5c8a1b6a90677721846a830d89af7918852c1fb84e6e66987e3f8d180';
  msgpack_unserialize(hex2bin($data));

@andypost
Copy link
Contributor

That's still valid but thanks for XFAIL

TEST 37/136 [tests/034.phpt]
========DIFF========
001+ 
001- OK
========DONE========
XFAIL Unserialize invalid random data [tests/034.phpt]   XFAIL REASON: REGRESSION

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants