FAQ
Commit: 7d5f71b0b125c89211e5a2a6d925deba938abd41
Author: Xinchen Hui <laruence@gmail.com> Thu, 10 Mar 2016 14:24:13 +0800
Parents: 5a6da79fd0bd88997b3679578c7702bc74b3f61a
Branches: PHP-7.0 master

Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7d5f71b0b125c89211e5a2a6d925deba938abd41

Log:
tsrm_win32_get_path_sid_key might returns NULL (Partially fix bug #71752)

Bugs:
https://bugs.php.net/71752

Changed paths:
   M Zend/zend_virtual_cwd.c


Diff:
diff --git a/Zend/zend_virtual_cwd.c b/Zend/zend_virtual_cwd.c
index 5e2189c..969d09e 100644
--- a/Zend/zend_virtual_cwd.c
+++ b/Zend/zend_virtual_cwd.c
@@ -597,12 +597,13 @@ static inline zend_ulong realpath_cache_key(const char *path, int path_len) /* {
   register zend_ulong h;
   char *bucket_key_start = tsrm_win32_get_path_sid_key(path);
   char *bucket_key = (char *)bucket_key_start;
- const char *e = bucket_key + strlen(bucket_key);
+ const char *e;

   if (!bucket_key) {
    return 0;
   }

+ e = bucket_key + strlen(bucket_key);
   for (h = Z_UL(2166136261); bucket_key < e;) {
    h *= Z_UL(16777619);
    h ^= *bucket_key++;

Search Discussions

  • Anatol Belski at Mar 10, 2016 at 8:37 am
    Commit: 67f0770036f866f6f0dadc044cdc8f94a5b9f030
    Author: Xinchen Hui <laruence@gmail.com> Thu, 10 Mar 2016 14:24:13 +0800
    Committer: Anatol Belski <ab@php.net> Thu, 10 Mar 2016 09:33:39 +0100
    Parents: 915a3762ef71526d6deddf95bf42a6d5bf5211f3
    Branches: PHP-5.6 PHP-7.0 master

    Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=67f0770036f866f6f0dadc044cdc8f94a5b9f030

    Log:
    tsrm_win32_get_path_sid_key might returns NULL (Partially fix bug #71752)

    cherry-picked from 7d5f71b0b125c89211e5a2a6d925deba938abd41

    Bugs:
    https://bugs.php.net/71752

    Changed paths:
       M Zend/zend_virtual_cwd.c


    Diff:
    diff --git a/Zend/zend_virtual_cwd.c b/Zend/zend_virtual_cwd.c
    index 32d6ab8..512a303 100644
    --- a/Zend/zend_virtual_cwd.c
    +++ b/Zend/zend_virtual_cwd.c
    @@ -587,12 +587,14 @@ static inline unsigned long realpath_cache_key(const char *path, int path_len TS
       register unsigned long h;
       char *bucket_key_start = tsrm_win32_get_path_sid_key(path TSRMLS_CC);
       char *bucket_key = (char *)bucket_key_start;
    - const char *e = bucket_key + strlen(bucket_key);
    + const char *e;

       if (!bucket_key) {
        return 0;
       }

    + e = bucket_key + strlen(bucket_key);
    +
       for (h = 2166136261U; bucket_key < e;) {
        h *= 16777619;
        h ^= *bucket_key++;

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-cvs @
categoriesphp
postedMar 10, '16 at 7:03a
activeMar 10, '16 at 8:37a
posts2
users2
websitephp.net

2 users in discussion

Anatol Belski: 1 post Xinchen Hui: 1 post

People

Translate

site design / logo © 2019 Grokbase