php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #75686
Patch patch_php_xmlwriter_c.txt revision 2017-12-14 12:19 UTC by yangx92 at hotmail dot com

Patch patch_php_xmlwriter_c.txt for XML Writer Bug #75686

Patch version 2017-12-14 12:19 UTC

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

Developer: yangx92@hotmail.com

 @@ -630,7 +630,9 @@ static char *_xmlwriter_get_valid_file_path(char *source, char *resolved_path, i
 			xmlFreeURI(uri);
 			return NULL;
 		}
-
+        if (strlen(source) >= MAXPATHLEN){
+			RETURN_FALSE;
+		}
 		memcpy(file_dirname, source, strlen(source));
 		dir_len = php_dirname(file_dirname, strlen(source));
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 20:01:32 2024 UTC