Bug #68692 [Csd]: explicit uninitalized pointer

From: Date: Thu, 08 Jan 2015 15:45:13 +0000
Subject: Bug #68692 [Csd]: explicit uninitalized pointer
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-189745@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68692&edit=1 ID: 68692 User updated by: bugreports at internot dot info Reported by: bugreports at internot dot info Summary: explicit uninitalized pointer Status: Closed Type: Bug Package: *General Issues Operating System: Linux Ubuntu 14.04 PHP Version: master-Git-2014-12-30 (Git) Block user comment: N Private report: N New Comment: 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; > } Previous Comments: ------------------------------------------------------------------------ [2015-01-08 08:38:20] laruence@php.net Automatic comment on behalf of laruence Revision: http://git.php.net/?p=php-src.git;a=commit;h=7ebdc8d70d7617f2c3353b027663ef54a24a2248 Log: Fixed #68692 ------------------------------------------------------------------------ [2014-12-31 21:09:15] bugreports at internot dot info 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++; ? ------------------------------------------------------------------------ [2014-12-31 18:42:16] php at mcq8 dot be What is the problem exactly? You just create a pointer that will be set by php_strtok_r. There is no dereference of an uninitalized pointer. ------------------------------------------------------------------------ [2014-12-30 04:58:53] 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, ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=68692&edit=1

« previous php.bugs (#189745) next »