From 020f1ba9492aa32341870f3db3599fc029d6a4e3 Mon Sep 17 00:00:00 2001 From: foobar Date: Mon, 5 Sep 2005 16:22:19 +0000 Subject: [PATCH] MFH: - Fixed bug #34311 (unserialize() crashes with characters above 191 dec) --- NEWS | 1 + ext/standard/var_unserializer.re | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index ca2c780ec2..549db65252 100644 --- a/NEWS +++ b/NEWS @@ -23,6 +23,7 @@ PHP NEWS - Fixed failing queries (FALSE returned) with mysqli_query() on 64 bit systems. (Andrey) - Fixed bug #34331 (php crashes when variables_order is empty). (Ilia) +- Fixed bug #34311 (unserialize() crashes with chars above 191 dec). (Nuno) - Fixed bug #34310 (foreach($arr as $c->d => $x) crashes). (Dmitry) - Fixed bug #34307 (on_modify handler not called to set the default value if setting from php.ini was invalid). (Andrei) diff --git a/ext/standard/var_unserializer.re b/ext/standard/var_unserializer.re index 09d63d30bd..b877f8c27e 100644 --- a/ext/standard/var_unserializer.re +++ b/ext/standard/var_unserializer.re @@ -150,7 +150,7 @@ uiv = [+]? [0-9]+; iv = [+-]? [0-9]+; nv = [+-]? ([0-9]* "." [0-9]+|[0-9]+ "." [0-9]*); nvexp = (iv | nv) [eE] [+-]? iv; -any = [\000-\277]; +any = [\000-\377]; object = [OC]; */ -- 2.40.0