|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2014-12-30 04:58 UTC] bugreports at internot dot info
Description: ------------ Hi, In /ext/standard/php_fopen_wrapper.c there is an uninitalized pointer read: 149 char *p, *token; 150 php_stream_filter *temp_filter; 151 152 p = php_strtok_r(filterlist, "|", &token); Thanks, PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 14:00:01 2025 UTC |
php_strtok_r(char *s, const char *delim, char **last) { char *spanp; int c, sc; char *tok; if (s == NULL && (s = *last) == NULL) { return NULL; } /* * Skip (span) leading delimiters (s += strspn(s, delim), sort of). */ cont: c = *s++; ?This is invalid. This can only be triggered if 'stream' is NULL. php_stream_apply_filter_list is never called if stream is NULL: > if (!(stream = php_stream_open_wrapper(p + 10, mode, options, opened_path))) { > efree(pathdup); > return NULL; > }