From e3fb9c3e8f8b41b0ceb0577c70867989cfa6ca8b Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Mon, 6 Apr 2009 11:49:33 +0000 Subject: [PATCH] MFH: Fixed segfault on invalid session.save_path --- NEWS | 1 + ext/session/mod_files.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 0237749890..b24a0e2404 100644 --- a/NEWS +++ b/NEWS @@ -6,6 +6,7 @@ PHP NEWS - Fixed memory corruptions while reading properties of zip files. (Ilia) - Fixed memory leak in ob_get_clean/ob_get_flush. (Christian) +- Fixed segfault on invalid session.save_path. (Hannes) - Fixed bug #47845 (PDO_Firebird omits first row from query). (Lars W) - Fixed bug #47831 (Compile warning for strnlen() in main/spprintf.c). diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index fc3317029a..312bbe6ef9 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -295,7 +295,7 @@ PS_OPEN_FUNC(files) argv[argc++] = last; last = ++p; p = strchr(p, ';'); - if (argc > 2) break; + if (argc > 1) break; } argv[argc++] = last; -- 2.50.1