Skip to content

Commit 0966666

Browse files
committed
MFH: resolve coverity issue #224
1 parent aaf1201 commit 0966666

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_builtin_functions.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1926,7 +1926,7 @@ ZEND_API void zend_fetch_debug_backtrace(zval *return_value, int skip_last, int
19261926
}
19271927

19281928
/* skip debug_backtrace() */
1929-
if (skip_last--) {
1929+
if (skip_last-- && ptr) {
19301930
int arg_count = *((ulong*)(cur_arg_pos - 2));
19311931
cur_arg_pos -= (arg_count + 2);
19321932
frames_on_stack--;

0 commit comments

Comments
 (0)