php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | |
Patch patch_php_xmlwriter_c.txt for XML Writer Bug #75686Patch version 2017-12-14 12:19 UTC Return to Bug #75686 | Download this patchPatch 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)); |
Copyright © 2001-2024 The PHP Group All rights reserved. |
Last updated: Tue Oct 08 12:01:26 2024 UTC |