Bug #72777 [NEW]: Use onig_set_match_stack_limit_size() with mbregex

From: Date: Sun, 07 Aug 2016 23:47:57 +0000
Subject: Bug #72777 [NEW]: Use onig_set_match_stack_limit_size() with mbregex
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-203049@lists.php.net to get a copy of this message
From: yohgaki Operating system: Irrelevant PHP version: Irrelevant Package: mbstring related Bug Type: Bug Bug description:Use onig_set_match_stack_limit_size() with mbregex Description: ------------ Oniguruma has onig_set_match_stack_limit_size() and it should be used for mbregex. extern int main(int argc, char* argv[]) { #define MAX_SIZE 1000000 int len; int i; char s[MAX_SIZE]; len = atoi(argv[1]); fprintf(stdout, "len: %d\n", len); for (i = 0; i < len; i++) { s[i] = ' '; } s[len] = 'a'; s[len + 1] = '\0'; onig_set_match_stack_limit_size(30000); exec(ONIG_ENCODING_UTF8, ONIG_ENCODING_UTF8, ONIG_OPTION_NONE, "\\s+$", s); return 0; } -- Edit bug report at https://bugs.php.net/bug.php?id=72777&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=72777&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=72777&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=72777&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=72777&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=72777&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=72777&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=72777&r=needscript Try newer version: https://bugs.php.net/fix.php?id=72777&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=72777&r=support Expected behavior: https://bugs.php.net/fix.php?id=72777&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=72777&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=72777&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=72777&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72777&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=72777&r=dst IIS Stability: https://bugs.php.net/fix.php?id=72777&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=72777&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=72777&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=72777&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=72777&r=mysqlcfg

« previous php.bugs (#203049) next »