|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-01-22 04:04 UTC] bugreports at internot dot info
Description:
------------
Hi,
Is the session_adapt_url function ever used?
Or, php_url_scanner_adapt_single_url?
Inside php_url_scanner_adapt_single_url there is a null pointer dereference:
389 if (newlen) *newlen = buf.s->len;
390 result = estrndup(buf.s->val, buf.s->len);
but it is initalized with {0}.
The function isn't used anywhere, though.
Should it be removed?
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 09 08:00:01 2025 UTC |
I can't find where it is used: megamansec@megamansec:~/php-src$ grep -nr 'session_adapt_url' ext/session/session.c:1609:PHPAPI void session_adapt_url(const char *url, size_t urllen, char **new, size_t *newlen) /* {{{ */ ext/session/php_session.h:224:PHPAPI void session_adapt_url(const char *, size_t, char **, size_t *); megamansec@megamansec:~/php-src$ Is it not in master anymore? Thanks,