Bug #64789 [NEW]: ext/mbstring/tests/mb_eregi.phpt crash

From: Date: Wed, 08 May 2013 11:22:03 +0000
Subject: Bug #64789 [NEW]: ext/mbstring/tests/mb_eregi.phpt crash
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-178850@lists.php.net to get a copy of this message
From:             ab
Operating system: Windows x64
PHP version:      Irrelevant
Package:          mbstring related
Bug Type:         Bug
Bug description:ext/mbstring/tests/mb_eregi.phpt crash

Description:
------------
The aforesaid test throws the access violation error with the following BT.

Happens on both TS and NTS builds with/without opcache. Reproducible using
CLI 
binary.

	php5_debug.dll!code2_hash(unsigned long * x) Line 10861	C
 	php5_debug.dll!onig_st_add_direct(st_table * table, unsigned long key, 
unsigned long value) Line 308	C
 	php5_debug.dll!init_case_fold_table() Line 10938	C
 	
php5_debug.dll!onigenc_unicode_get_case_fold_codes_by_str(OnigEncodingTypeST
* 
enc, unsigned int flag, const unsigned char * p, const unsigned char * end,

OnigCaseFoldCodeItem * items) Line 11167	C
 	php5_debug.dll!get_case_fold_codes_by_str(unsigned int flag, const 
unsigned char * p, const unsigned char * end, OnigCaseFoldCodeItem * items)
Line 
286	C
 	php5_debug.dll!expand_case_fold_string(_Node * node, re_pattern_buffer *

reg) Line 3388	C
 	php5_debug.dll!setup_tree(_Node * node, re_pattern_buffer * reg, int 
state, ScanEnv * env) Line 3687	C
 	php5_debug.dll!onig_compile(re_pattern_buffer * reg, const unsigned char

* pattern, const unsigned char * pattern_end, OnigErrorInfo * einfo) Line
5336	
C
 	php5_debug.dll!onig_new(re_pattern_buffer * * reg, const unsigned char *

pattern, const unsigned char * pattern_end, unsigned int option, 
OnigEncodingTypeST * enc, OnigSyntaxType * syntax, OnigErrorInfo * einfo)
Line 
5546	C
 	php5_debug.dll!php_mbregex_compile_pattern(const char * pattern, int 
patlen, unsigned int options, OnigEncodingTypeST * enc, OnigSyntaxType *
syntax) 
Line 458	C
 	php5_debug.dll!_php_mb_regex_ereg_exec(int ht, _zval_struct * 
return_value, _zval_struct * * return_value_ptr, _zval_struct * this_ptr,
int 
return_value_used, int icase) Line 728	C
 	php5_debug.dll!zif_mb_eregi(int ht, _zval_struct * return_value, 
_zval_struct * * return_value_ptr, _zval_struct * this_ptr, int 
return_value_used) Line 783	C


Expected result:
----------------
test pass

Actual result:
--------------
crash

-- 
Edit bug report at https://bugs.php.net/bug.php?id=64789&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=64789&r=trysnapshot54
Try a snapshot (PHP 5.3):   https://bugs.php.net/fix.php?id=64789&r=trysnapshot53
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=64789&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=64789&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=64789&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=64789&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=64789&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=64789&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=64789&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=64789&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=64789&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=64789&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=64789&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64789&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=64789&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=64789&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=64789&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64789&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=64789&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=64789&r=mysqlcfg



Thread (2 messages)

« previous php.bugs (#178850) next »