Skip to content

Commit

Permalink
Merge pull request #459 from reliforp/ignore-error-on-chunk-finder
Browse files Browse the repository at this point in the history
ignore errors when searching main chunks
  • Loading branch information
sj-i committed Apr 29, 2024
2 parents 6e7ba15 + ef9d949 commit 29ddf96
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Lib/PhpProcessReader/PhpZendMemoryManagerChunkFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ public function findAddress(
$zend_mm_chunk->isInRange($execute_data_address)
and !is_null($zend_mm_chunk->heap)
) {
$heap = $dereferencer->deref($zend_mm_chunk->heap);
try {
$heap = $dereferencer->deref($zend_mm_chunk->heap);
} catch (\Throwable $e) {
continue;
}
return $heap->main_chunk?->address;
}
}
Expand Down

0 comments on commit 29ddf96

Please sign in to comment.