Bug #68692 [Opn]: explicit uninitalized pointer

From: Date: Wed, 31 Dec 2014 21:09:16 +0000
Subject: Bug #68692 [Opn]: explicit uninitalized pointer
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-189568@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: Open 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: 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++; ? Previous Comments: ------------------------------------------------------------------------ [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 (#189568) next »