php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch memcache_session_parse_fix.patch for memcache Bug #73539

Patch version 2016-11-16 09:54 UTC

Return to Bug #73539 | Download this patch
Patch Revisions:

Developer: php@bof.de

--- ../release-5.6.28//memcache/memcache_session.c	2016-11-10 16:27:45.963096097 +0100
+++ ./memcache/memcache_session.c	2016-11-15 16:07:09.186618020 +0100
@@ -90,7 +90,10 @@
 				efree(path);
 			}
 			else {
-				url = php_url_parse_ex(save_path+i, j-i);
+				int len = j-i;
+				char *path = estrndup(save_path+i, len);
+				url = php_url_parse_ex(path, strlen(path));
+				efree(path);
 			}
 
 			if (!url) {
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 08:01:29 2024 UTC