Skip to content

Commit

Permalink
Replaced usafe reference from SHM to process memory with SHM to SHM r…
Browse files Browse the repository at this point in the history
…eference
  • Loading branch information
dstogov committed Mar 12, 2018
1 parent 01ea314 commit f31c4d5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ext/opcache/zend_file_cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,11 @@ static void zend_file_cache_unserialize_hash(HashTable *ht,

ht->pDestructor = dtor;
if (!(ht->u.flags & HASH_FLAG_INITIALIZED)) {
HT_SET_DATA_ADDR(ht, &uninitialized_bucket);
if (EXPECTED(!file_cache_only)) {
HT_SET_DATA_ADDR(ht, &ZCSG(uninitialized_bucket));
} else {
HT_SET_DATA_ADDR(ht, &uninitialized_bucket);
}
return;
}
if (IS_UNSERIALIZED(ht->arData)) {
Expand Down

0 comments on commit f31c4d5

Please sign in to comment.