Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler. Number of rules (primarily dangerous function names) in C/C++ ruleset: 223 Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_private.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_profiler.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_tracing.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/php_xdebug.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/usefulstuff.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_profiler.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_superglobals.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handlers.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_tracing.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_compat.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_set.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_stack.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_llist.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_compat.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_monitor.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_trace_textual.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_trace_textual.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_var.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_trace_html.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_stack.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_set.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handlers.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/debugclient/usefulstuff.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/debugclient/main.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/debugclient/usefulstuff.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_llist.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_com.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_com.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_monitor.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_mm.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_str.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_private.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_code_coverage.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_hash.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_branch_info.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_superglobals.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/usefulstuff.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_trace_computerized.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_xml.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_trace_html.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_str.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_trace_computerized.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_code_coverage.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_hash.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_var.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_xml.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_branch_info.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_private.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_profiler.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_tracing.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/php_xdebug.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/usefulstuff.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_profiler.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_superglobals.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handlers.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_tracing.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_compat.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_set.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_stack.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_llist.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_compat.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_monitor.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_trace_textual.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_trace_textual.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_var.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_trace_html.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_stack.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_filter.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_set.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handlers.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/debugclient/usefulstuff.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/debugclient/main.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/debugclient/usefulstuff.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_llist.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_com.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_com.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_filter.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_monitor.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_mm.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_str.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_private.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_code_coverage.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_hash.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_branch_info.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_superglobals.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_gc_stats.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/usefulstuff.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_trace_computerized.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_xml.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_trace_html.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_str.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_trace_computerized.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_code_coverage.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_hash.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_var.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_xml.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_gc_stats.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_branch_info.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/php_xdebug.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/xdebug.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/debugclient/usefulstuff.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/debugclient/main.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/debugclient/usefulstuff.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/tracing/trace_textual.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/tracing/trace_computerized.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/tracing/tracing.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/tracing/tracing.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/tracing/tracing_private.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/tracing/trace_textual.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/tracing/trace_computerized.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/tracing/trace_html.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/tracing/trace_html.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/profiler/profiler_private.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/profiler/profiler.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/profiler/profiler.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/gcstats/gc_stats.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/gcstats/gc_stats_private.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/gcstats/gc_stats.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/com.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/com.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handlers.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handlers.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/debugger_private.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/debugger.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/debugger.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/coverage/branch_info.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/coverage/code_coverage.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/coverage/code_coverage.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/coverage/code_coverage_private.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/coverage/branch_info.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/usefulstuff.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/set.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/var_export_html.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/var_export_text.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/var_export_serialized.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/var_export_line.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/llist.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/var_export_text.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/crc32.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/var_export_serialized.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/mm.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/var_export_xml.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/xml.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/compat.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/str.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/var.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/crc32.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/xml.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/hash.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/var_export_xml.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/var_export_line.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/llist.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/lib_private.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/usefulstuff.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/lib.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/hash.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/var.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/lib.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/var_export_html.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/compat.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/str.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/set.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/base/stack.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/base/base.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/base/superglobals.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/base/filter.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/base/filter.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/base/base.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/base/monitor.h Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/base/stack.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/base/monitor.c Examining data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/base/superglobals.h FINAL RESULTS: data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_com.h:56:53: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define XDEBUG_LOG_PRINT(fs, string, ...) if (fs) { fprintf(fs, string, ## __VA_ARGS__); } data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_str.c:97:7: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. n = vsnprintf(new_str, size, fmt, args); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug.c:89:172: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. void (*xdebug_old_error_cb)(int type, const char *error_filename, const XDEBUG_ERROR_LINENO_TYPE error_lineno, const char *format, va_list args) ZEND_ATTRIBUTE_PTR_FORMAT(printf, 4, 0); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug.c:2056:181: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. void (*tmp_error_cb)(int type, const char *error_filename, const XDEBUG_ERROR_LINENO_TYPE error_lineno, const char *format, va_list args) ZEND_ATTRIBUTE_PTR_FORMAT(printf, 4, 0) = NULL; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:261:30: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. void XDEBUG_ATTRIBUTE_FORMAT(printf, 2, 3) xdebug_dbgp_log(int log_level, const char *fmt, ...) data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:269:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(XG(remote_log_file), fmt, argv); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.h:110:30: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. void XDEBUG_ATTRIBUTE_FORMAT(printf, 2, 3) xdebug_dbgp_log(int log_level, const char *fmt, ...); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handlers.h:147:31: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. void XDEBUG_ATTRIBUTE_FORMAT(printf, 2, 3) (*log)(int log_level, const char *fmt, ...); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_str.c:164:7: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. n = vsnprintf(new_str, size, fmt, args); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/base/base.c:36:172: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. void (*xdebug_old_error_cb)(int type, const char *error_filename, const XDEBUG_ERROR_LINENO_TYPE error_lineno, const char *format, va_list args) ZEND_ATTRIBUTE_PTR_FORMAT(printf, 4, 0); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/base/base.c:437:181: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. void (*tmp_error_cb)(int type, const char *error_filename, const XDEBUG_ERROR_LINENO_TYPE error_lineno, const char *format, va_list args) ZEND_ATTRIBUTE_PTR_FORMAT(printf, 4, 0) = NULL; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:275:30: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. void XDEBUG_ATTRIBUTE_FORMAT(printf, 2, 3) xdebug_dbgp_log(int log_level, const char *fmt, ...) data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:283:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(XG_DBG(remote_log_file), fmt, argv); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.h:108:30: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. void XDEBUG_ATTRIBUTE_FORMAT(printf, 2, 3) xdebug_dbgp_log(int log_level, const char *fmt, ...); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handlers.h:141:31: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. void XDEBUG_ATTRIBUTE_FORMAT(printf, 2, 3) (*log)(int log_level, const char *fmt, ...); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/str.c:164:7: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. n = vsnprintf(new_str, size, fmt, args); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/debugclient/main.c:179:9: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. opt = getopt(argc, argv, "hp:v146"); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug.c:478:12: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ide_key = getenv("DBGP_IDEKEY"); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug.c:483:12: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ide_key = getenv("USER"); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug.c:488:12: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ide_key = getenv("USERNAME"); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug.c:498:23: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *config = getenv("XDEBUG_CONFIG"); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug.c:665:23: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. XG(output_is_tty) = getenv("ANSICON"); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug.c:1895:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. } else if (getenv("XDEBUG_CONFIG")) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug.c:1896:28: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. magic_cookie = xdstrdup(getenv("XDEBUG_CONFIG")); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:2269:6: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("DBGP_COOKIE")) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:2270:61: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. xdebug_xml_add_attribute_ex(response, "session", xdstrdup(getenv("DBGP_COOKIE")), 0, 1); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/debugclient/main.c:179:9: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. opt = getopt(argc, argv, "hp:v146"); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug.c:519:12: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ide_key = getenv("DBGP_IDEKEY"); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug.c:524:12: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ide_key = getenv("USER"); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug.c:529:12: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ide_key = getenv("USERNAME"); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug.c:539:23: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *config = getenv("XDEBUG_CONFIG"); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug.c:710:23: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. XG(output_is_tty) = getenv("ANSICON"); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_com.c:583:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. } else if (getenv("XDEBUG_CONFIG")) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:2349:6: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("DBGP_COOKIE")) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:2350:61: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. xdebug_xml_add_attribute_ex(response, "session", xdstrdup(getenv("DBGP_COOKIE")), 0, 1); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/debugclient/main.c:179:9: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. opt = getopt(argc, argv, "hp:v146"); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/com.c:542:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. } else if (getenv("XDEBUG_CONFIG")) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/debugger.c:86:12: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ide_key = getenv("DBGP_IDEKEY"); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/debugger.c:91:12: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ide_key = getenv("USER"); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/debugger.c:96:12: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ide_key = getenv("USERNAME"); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:2418:6: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("DBGP_COOKIE")) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:2419:61: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. xdebug_xml_add_attribute_ex(response, "session", xdstrdup(getenv("DBGP_COOKIE")), 0, 1); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/xdebug.c:438:23: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *config = getenv("XDEBUG_CONFIG"); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/xdebug.c:534:28: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. XG_BASE(output_is_tty) = getenv("ANSICON"); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/debugclient/main.c:68:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char prompt[8]; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/debugclient/main.c:202:12: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). port = atoi(optarg); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/debugclient/main.c:297:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(prompt, "(cmd) "); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/debugclient/usefulstuff.c:39:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[READ_BUFFER_SIZE + 1]; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/debugclient/usefulstuff.c:55:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(context->buffer + context->buffer_size, buffer, newl); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/debugclient/usefulstuff.c:68:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp, context->buffer, size); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/debugclient/usefulstuff.c:72:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp_buf, ptr + 1, nbufsize); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/usefulstuff.c:62:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[READ_BUFFER_SIZE + 1]; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/usefulstuff.c:78:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(context->buffer + context->buffer_size, buffer, newl); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/usefulstuff.c:91:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp, context->buffer, size); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/usefulstuff.c:95:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp_buf, ptr + 1, nbufsize); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/usefulstuff.c:142:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(args->args[args->c - 1], p1, strlen(str)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/usefulstuff.c:149:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(args->args[args->c - 1], p1, p2 - p1); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/usefulstuff.c:158:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(args->args[args->c - 1], p1, endp - p1); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/usefulstuff.c:353:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cwd[MAXPATHLEN]; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/usefulstuff.c:427:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fh = fopen(tmp_fname, mode); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/usefulstuff.c:447:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fh = fopen(tmp_fname, mode); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/usefulstuff.c:537:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ret = fopen(tmp_fname, mode); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/usefulstuff.c:550:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cwd[128]; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug.c:691:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(stack->elements[0], element, size); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_branch_info.c:287:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp_nr[16]; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_branch_info.h:34:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char out_hit[2]; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_com.c:60:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sport[10]; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_com.c:81:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(sport, "%d", dport); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_compat.c:110:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char numtmp[4]; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:70:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *xdebug_dbgp_status_strings[6] = data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:78:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *xdebug_dbgp_reason_strings[4] = data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:121:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *xdebug_dbgp_typemap[XDEBUG_TYPES_COUNT][3] = { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:361:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). key = create_eval_key_id(atoi(id)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:559:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (atoi(parts->args[1]) == brk_info->lineno && memcmp(brk_info->file, parts->args[0], brk_info->file_len) == 0) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:603:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (atoi(parts->args[1]) == brk_info->lineno && memcmp(brk_info->file, parts->args[0], brk_info->file_len) == 0) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:820:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char realpath_file[MAXPATHLEN]; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:1890:16: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). context_id = atol(CMD_OPTION('c')); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:1893:11: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). depth = atol(CMD_OPTION('d')); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:2002:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(*cmd, line, ptr - line); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:2047:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(args->value[opt_index], value_begin, ptr - value_begin); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:2076:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(args->value[opt_index], value_begin, len); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.h:69:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *value[27]; /* one extra for - */ data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_hash.c:38:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp, key->value.str.val, key->value.str.len); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_hash.c:111:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((__k)->value.str.val, __s_key, __s_key_len); \ data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_str.c:42:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(xs->d + xs->l, str, l); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_str.c:59:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(xs->d + xs->l, str, le); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_str.c:128:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, s, length); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_var.c:327:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(element + 1, prefix, extra_length - 2); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_var.c:329:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(element + extra_length, name, *name_length); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/debugclient/main.c:68:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char prompt[8]; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/debugclient/main.c:202:12: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). port = atoi(optarg); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/debugclient/main.c:297:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(prompt, "(cmd) "); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/debugclient/usefulstuff.c:39:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[READ_BUFFER_SIZE + 1]; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/debugclient/usefulstuff.c:55:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(context->buffer + context->buffer_size, buffer, newl); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/debugclient/usefulstuff.c:68:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp, context->buffer, size); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/debugclient/usefulstuff.c:72:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp_buf, ptr + 1, nbufsize); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/usefulstuff.c:62:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[READ_BUFFER_SIZE + 1]; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/usefulstuff.c:78:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(context->buffer + context->buffer_size, buffer, newl); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/usefulstuff.c:96:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp, context->buffer, size); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/usefulstuff.c:100:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp_buf, ptr + 1, nbufsize); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/usefulstuff.c:146:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(args->args[args->c - 1], p1, strlen(str)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/usefulstuff.c:153:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(args->args[args->c - 1], p1, p2 - p1); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/usefulstuff.c:162:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(args->args[args->c - 1], p1, endp - p1); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/usefulstuff.c:357:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cwd[MAXPATHLEN]; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/usefulstuff.c:423:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fh = fopen(tmp_fname, mode); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/usefulstuff.c:443:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fh = fopen(tmp_fname, mode); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/usefulstuff.c:533:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ret = fopen(tmp_fname, mode); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/usefulstuff.c:546:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cwd[128]; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug.c:736:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(stack->elements[0], element, size); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_branch_info.c:317:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp_nr[16]; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_branch_info.h:44:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char outs_hit[XDEBUG_BRANCH_MAX_OUTS]; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_code_coverage.c:1054:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key[17]; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_com.c:93:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sport[10]; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_com.c:122:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(sport, "%d", dport); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_compat.c:264:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ZSTR_VAL(new_str), ZSTR_VAL(str), offset); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_compat.c:301:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char numtmp[4]; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:75:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *xdebug_dbgp_status_strings[6] = data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:83:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *xdebug_dbgp_reason_strings[4] = data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:126:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *xdebug_dbgp_typemap[XDEBUG_TYPES_COUNT][3] = { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:420:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). key = create_eval_key_id(atoi(id)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:644:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (atoi(parts->args[1]) == brk_info->original_lineno && memcmp(brk_info->file, parts->args[0], brk_info->file_len) == 0) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:690:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (atoi(parts->args[1]) == brk_info->original_lineno && memcmp(brk_info->file, parts->args[0], brk_info->file_len) == 0) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:919:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char realpath_file[MAXPATHLEN]; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:1977:16: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). context_id = atol(CMD_OPTION_CHAR('c')); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:1980:11: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). depth = atol(CMD_OPTION_CHAR('d')); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:2090:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(*cmd, line, ptr - line); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_hash.c:35:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp, key->value.str.val, key->value.str.len); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_hash.c:119:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((__k)->value.str.val, __s_key, __s_key_len); \ data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_private.c:24:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *xdebug_log_prefix[11] = { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_str.c:48:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(xs->d + xs->l, str, l); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_str.c:60:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(xs->d + xs->l, str, le); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_str.c:73:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(xs->d + xs->l, str->d, str->l); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_str.c:115:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp->d, c, tmp->l); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_str.c:133:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp->d, orig->d, tmp->l); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_str.c:195:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, s, length); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_var.c:257:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(element + 1, prefix, extra_length - 2); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_var.c:259:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(element + extra_length, name, *name_length); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/debugclient/main.c:68:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char prompt[8]; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/debugclient/main.c:202:12: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). port = atoi(optarg); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/debugclient/main.c:297:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(prompt, "(cmd) "); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/debugclient/usefulstuff.c:39:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[READ_BUFFER_SIZE + 1]; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/debugclient/usefulstuff.c:55:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(context->buffer + context->buffer_size, buffer, newl); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/debugclient/usefulstuff.c:68:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp, context->buffer, size); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/debugclient/usefulstuff.c:72:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp_buf, ptr + 1, nbufsize); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/coverage/branch_info.c:314:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp_nr[16]; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/coverage/branch_info.h:46:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char outs_hit[XDEBUG_BRANCH_MAX_OUTS]; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/com.c:95:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sport[10]; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/com.c:124:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(sport, "%d", dport); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:89:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *xdebug_dbgp_status_strings[6] = data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:97:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *xdebug_dbgp_reason_strings[4] = data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:140:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *xdebug_dbgp_typemap[XDEBUG_TYPES_COUNT][3] = { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:435:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). key = create_eval_key_id(atoi(id)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:654:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (atoi(parts->args[1]) == brk_info->original_lineno && memcmp(brk_info->file, parts->args[0], brk_info->file_len) == 0) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:699:9: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (atoi(parts->args[1]) == brk_info->original_lineno && memcmp(brk_info->file, parts->args[0], brk_info->file_len) == 0) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:922:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char realpath_file[MAXPATHLEN]; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:1982:16: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). context_id = atol(CMD_OPTION_CHAR('c')); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:1985:11: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). depth = atol(CMD_OPTION_CHAR('d')); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:2097:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(*cmd, line, ptr - line); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:2286:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[READ_BUFFER_SIZE + 1]; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:2302:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(context->buffer + context->buffer_size, buffer, newl); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:2320:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp, context->buffer, size); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:2324:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp_buf, ptr + 1, nbufsize); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/compat.c:253:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ZSTR_VAL(new_str), ZSTR_VAL(str), offset); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/compat.c:290:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char numtmp[4]; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/hash.c:35:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp, key->value.str.val, key->value.str.len); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/hash.c:119:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((__k)->value.str.val, __s_key, __s_key_len); \ data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/lib.c:25:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *xdebug_log_prefix[11] = { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/str.c:48:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(xs->d + xs->l, str, l); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/str.c:60:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(xs->d + xs->l, str, le); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/str.c:73:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(xs->d + xs->l, str->d, str->l); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/str.c:115:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp->d, c, tmp->l); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/str.c:133:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tmp->d, orig->d, tmp->l); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/str.c:195:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, s, length); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/usefulstuff.c:87:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(args->args[args->c - 1], p1, strlen(str)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/usefulstuff.c:94:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(args->args[args->c - 1], p1, p2 - p1); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/usefulstuff.c:103:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(args->args[args->c - 1], p1, endp - p1); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/usefulstuff.c:298:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cwd[MAXPATHLEN]; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/usefulstuff.c:352:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fh = fopen(tmp_fname, mode); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/usefulstuff.c:371:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fh = fopen(tmp_fname, mode); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/usefulstuff.c:461:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ret = fopen(tmp_fname, mode); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/usefulstuff.c:474:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cwd[128]; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/var.c:263:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(element + 1, prefix, extra_length - 2); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/var.c:265:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(element + extra_length, name, *name_length); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/debugclient/main.c:306:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). cmd[strlen(cmd) - 1] = '\0'; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/debugclient/main.c:316:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (prev_cmd && ((strlen(cmd) == 0) || (strlen(cmd) == 1 && cmd[0] == '\n'))) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/debugclient/main.c:316:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (prev_cmd && ((strlen(cmd) == 0) || (strlen(cmd) == 1 && cmd[0] == '\n'))) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/debugclient/main.c:326:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (send(fd, cmd, strlen(cmd), MSG_NOSIGNAL) == -1) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/debugclient/usefulstuff.c:49:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). newl = read(socket, buffer, READ_BUFFER_SIZE); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/usefulstuff.c:72:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). newl = read(socketfd, buffer, READ_BUFFER_SIZE); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/usefulstuff.c:133:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). endp = str + strlen(str); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/usefulstuff.c:136:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p2 = xdebug_memnstr(str, delim, strlen(delim), endp); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/usefulstuff.c:141:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). args->args[args->c - 1] = (char*) xdmalloc(strlen(str) + 1); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/usefulstuff.c:142:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memcpy(args->args[args->c - 1], p1, strlen(str)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/usefulstuff.c:143:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). args->args[args->c - 1][strlen(str)] = '\0'; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/usefulstuff.c:151:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p1 = p2 + strlen(delim); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/usefulstuff.c:152:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). } while ((p2 = xdebug_memnstr(p1, delim, strlen(delim), endp)) != NULL && (limit == -1 || --limit > 1)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/usefulstuff.c:311:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_raw_url_decode(dfp, strlen(dfp)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/usefulstuff.c:321:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l = strlen(ret); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/usefulstuff.c:345:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). encoded_fileurl = xdebug_raw_url_encode(fileurl, strlen(fileurl), &new_len, 1); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/usefulstuff.c:366:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). new_state.cwd_length = strlen(cwd); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/usefulstuff.c:393:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l = strlen(tmp); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/usefulstuff.c:471:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). filename_len += (fname ? strlen(fname) : 0); /* filename */ data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/usefulstuff.c:472:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). filename_len += (extension ? strlen(extension) : 0) + 1; /* extension (+ ".") */ data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/usefulstuff.c:475:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fname[NAME_MAX - (extension ? strlen(extension) : 0 )] = '\0'; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/usefulstuff.c:563:70: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_str_add(&fname, xdebug_sprintf("%lu", xdebug_crc32(cwd, strlen(cwd))), 1); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/usefulstuff.c:685:93: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ((data = zend_hash_str_find(Z_ARRVAL(PG(http_globals)[TRACK_VARS_COOKIE]), sess_name, strlen(sess_name))) != NULL) && data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/usefulstuff.c:691:82: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zend_hash_find(Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_COOKIE]), sess_name, strlen(sess_name) + 1, (void **) &data) == SUCCESS && data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/usefulstuff.c:757:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (XG(remote_log) && strlen(XG(remote_log))) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/usefulstuff.c:765:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). } else if (strlen(XG(remote_log))) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug.c:578:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zend_string *ini_name = zend_string_init(name, strlen(name), 0); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug.c:579:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zend_string *ini_val = zend_string_init(envval, strlen(envval), 0); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug.c:584:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zend_alter_ini_entry(name, strlen(name) + 1, envval, strlen(envval), PHP_INI_SYSTEM, PHP_INI_STAGE_ACTIVATE); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug.c:584:57: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zend_alter_ini_entry(name, strlen(name) + 1, envval, strlen(envval), PHP_INI_SYSTEM, PHP_INI_STAGE_ACTIVATE); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug.c:1325:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && XG(trace_output_dir) && strlen(XG(trace_output_dir)) data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug.c:1519:90: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (trigger_val = zend_hash_str_find(Z_ARR(PG(http_globals)[TRACK_VARS_GET]), var_name, strlen(var_name))) != NULL data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug.c:1521:91: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (trigger_val = zend_hash_str_find(Z_ARR(PG(http_globals)[TRACK_VARS_POST]), var_name, strlen(var_name))) != NULL data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug.c:1523:93: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (trigger_val = zend_hash_str_find(Z_ARR(PG(http_globals)[TRACK_VARS_COOKIE]), var_name, strlen(var_name))) != NULL data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug.c:1528:74: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zend_hash_find(PG(http_globals)[TRACK_VARS_GET]->value.ht, var_name, strlen(var_name) + 1, (void **) &trigger_val) == SUCCESS data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug.c:1531:75: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zend_hash_find(PG(http_globals)[TRACK_VARS_POST]->value.ht, var_name, strlen(var_name) + 1, (void **) &trigger_val) == SUCCESS data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug.c:1534:77: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zend_hash_find(PG(http_globals)[TRACK_VARS_COOKIE]->value.ht, var_name, strlen(var_name) + 1, (void **) &trigger_val) == SUCCESS data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug.c:1728:82: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (xdebug_hash_find(XG(context).function_breakpoints, fse->function.function, strlen(fse->function.function), (void *) &extra_brk_info)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug.c:1748:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmp_len = strlen(fse->function.class) + strlen(fse->function.function) + 3; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug.c:1748:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmp_len = strlen(fse->function.class) + strlen(fse->function.function) + 3; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug.c:1898:79: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_setcookie("XDEBUG_SESSION", sizeof("XDEBUG_SESSION"), XG(ide_key), strlen(XG(ide_key)), time(NULL) + XG(remote_cookie_expire_time), "/", 1, NULL, 0, 0, 1, 0 TSRMLS_CC); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug.c:2303:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((strlen(header) > prefix_len + 1) && (header[prefix_len] == ':') && (strncasecmp(header, prefix, prefix_len) == 0)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug.c:2328:63: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_header_remove_with_prefix(XG(headers), h->header, strlen(h->header) TSRMLS_CC); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug.c:2431:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). PHPWRITE(val, strlen(val)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug.c:2436:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). PHPWRITE(val, strlen(val)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug.c:2502:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). PHPWRITE(val, strlen(val)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug.c:2506:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). PHPWRITE(val, strlen(val)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug.c:2570:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). printf("%s(%zd)", val, strlen(val)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug.c:2814:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int file_len = strlen(file); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_branch_info.c:363:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!xdebug_hash_find(XG(code_coverage), file_name, strlen(file_name), (void *) &file)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_branch_info.c:376:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!xdebug_hash_find(file->functions, function_name, strlen(function_name), (void *) &function)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_branch_info.c:402:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!xdebug_hash_find(XG(visited_branches), key, strlen(key), (void*) &dummy)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_branch_info.c:404:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_hash_add(XG(visited_branches), key, strlen(key), NULL); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_branch_info.c:424:54: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!xdebug_hash_find(XG(code_coverage), filename, strlen(filename), (void *) &file)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_branch_info.c:437:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!xdebug_hash_find(file->functions, function_name, strlen(function_name), (void *) &function)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_branch_info.c:458:54: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!xdebug_hash_find(XG(code_coverage), filename, strlen(filename), (void *) &file)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_branch_info.c:462:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_hash_add(XG(code_coverage), filename, strlen(filename), file); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_branch_info.c:469:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!xdebug_hash_find(file->functions, function_name, strlen(function_name), (void *) &function)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_branch_info.c:473:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_hash_add(file->functions, function_name, strlen(function_name), function); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_code_coverage.c:507:54: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!xdebug_hash_find(XG(code_coverage), filename, strlen(filename), (void *) &file)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_code_coverage.c:511:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_hash_add(XG(code_coverage), filename, strlen(filename), file); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_com.h:38:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define SSEND(a,b) send(a,b,strlen(b),0) data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_com.h:43:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define SSEND(a,b) write(a,b,strlen(b)) data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_com.h:44:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define SREAD(a,b,c) read(a,b,c) data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_compat.h:57:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # define HASH_KEY_STRLEN(k) (strlen(k)) data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_compat.h:96:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # define HASH_KEY_STRLEN(k) (strlen(k) + 1) data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:362:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (xdebug_hash_find(XG(context).eval_id_lookup, key, strlen(key), (void *) &ei)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:390:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). end_marker = filename_to_use + strlen(filename_to_use) - strlen("eval()'d code"); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:390:59: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). end_marker = filename_to_use + strlen(filename_to_use) - strlen("eval()'d code"); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:392:69: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (xdebug_hash_find(XG(context).eval_id_lookup, filename_to_use, strlen(filename_to_use), (void *) &ei)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:465:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_hash_add(context->breakpoint_list, hkey, strlen(hkey), (void*) admin); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:475:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (xdebug_hash_find(context->breakpoint_list, hkey, strlen(hkey), (void *) &admin)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:487:57: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (xdebug_hash_delete(context->breakpoint_list, hkey, strlen(hkey))) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:534:58: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_xml_add_text_ex(condition, brk_info->condition, strlen(brk_info->condition), 0, 1); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:570:65: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (xdebug_hash_find(XG(context).function_breakpoints, hkey, strlen(hkey), (void *) &brk_info)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:576:66: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (xdebug_hash_find(XG(context).exception_breakpoints, hkey, strlen(hkey), (void *) &brk_info)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:615:67: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (xdebug_hash_delete(XG(context).function_breakpoints, hkey, strlen(hkey))) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:621:68: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (xdebug_hash_delete(XG(context).exception_breakpoints, hkey, strlen(hkey))) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:817:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). brk_info->file_len = strlen(brk_info->file); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:830:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). brk_info->file_len = strlen(brk_info->file); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:835:89: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). brk_info->condition = (char*) xdebug_base64_decode((unsigned char*) CMD_OPTION('-'), strlen(CMD_OPTION('-')), &new_length); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:860:67: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). res = xdebug_hash_add(context->function_breakpoints, tmp_name, strlen(tmp_name), (void*) brk_info); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:868:73: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!xdebug_hash_add(context->function_breakpoints, CMD_OPTION('m'), strlen(CMD_OPTION('m')), (void*) brk_info)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:881:73: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!xdebug_hash_add(context->exception_breakpoints, CMD_OPTION('x'), strlen(CMD_OPTION('x')), (void*) brk_info)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:986:79: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). eval_string = (char*) xdebug_base64_decode((unsigned char*) CMD_OPTION('-'), strlen(CMD_OPTION('-')), &new_length); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:1397:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!xdebug_get_constant(CMD_OPTION('n'), strlen(CMD_OPTION('n')), &const_val TSRMLS_CC)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:1485:58: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). new_value = xdebug_base64_decode((unsigned char*) data, strlen(data), &new_length); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:1684:60: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_hash_add(tmp_hash, (char*) HASH_KEY_VAL(hash_key), strlen(HASH_KEY_VAL(hash_key)), HASH_KEY_VAL(hash_key)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:1807:67: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zend_class_entry *ce = xdebug_fetch_class(fse->function.class, strlen(fse->function.class), ZEND_FETCH_CLASS_DEFAULT TSRMLS_CC); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:1991:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(line)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:2511:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ei->contents = xdstrndup(fse->include_filename, strlen(fse->include_filename)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:2515:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_hash_add(context->eval_id_lookup, key, strlen(key), (void*) ei); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_handler_dbgp.c:2518:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_hash_add(context->eval_id_lookup, key, strlen(key), (void*) ei); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_private.c:90:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_hash_add(tmp, var_name, strlen(var_name), var_name); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_profiler.c:63:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!strlen(XG(profiler_output_name)) || data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_profiler.c:69:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (IS_SLASH(XG(profiler_output_dir)[strlen(XG(profiler_output_dir)) - 1])) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_profiler.c:128:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (xdebug_hash_find(XG(profile_filename_refs), name, strlen(name), (void*) &nr)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_profiler.c:132:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_hash_add(XG(profile_filename_refs), name, strlen(name), (void*) (size_t) XG(profile_last_filename_ref)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_profiler.c:141:60: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (xdebug_hash_find(XG(profile_functionname_refs), name, strlen(name), (void*) &nr)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_profiler.c:145:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_hash_add(XG(profile_functionname_refs), name, strlen(name), (void*) (size_t) XG(profile_last_functionname_ref)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_stack.c:298:68: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmp = php_escape_html_entities((unsigned char *) first_closing, strlen(first_closing), 0, 0, NULL TSRMLS_CC); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_stack.c:303:68: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmp = php_escape_html_entities((unsigned char *) first_closing, strlen(first_closing), &newlen, 0, 0, NULL TSRMLS_CC); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_stack.c:323:61: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmp = php_escape_html_entities((unsigned char *) buffer, strlen(buffer), 0, 0, NULL TSRMLS_CC); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_stack.c:327:65: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). escaped = php_escape_html_entities((unsigned char *) buffer, strlen(buffer), &newlen, 0, 0, NULL TSRMLS_CC); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_stack.c:334:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(XG(file_link_format)) > 0 && html) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_stack.c:366:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmp_fancy_value = xdebug_xmlize(tmp_value, strlen(tmp_value), &newlen); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_stack.c:377:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmp_fancy_value = xdebug_xmlize(tmp_value, strlen(tmp_value), &newlen); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_stack.c:509:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(XG(file_link_format)) > 0) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_stack.c:656:82: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zend_alter_ini_entry("max_execution_time", sizeof("max_execution_time"), "0", strlen("0"), PHP_INI_SYSTEM, PHP_INI_STAGE_ACTIVATE); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_stack.c:775:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p = buffer + strlen(buffer); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_stack.c:788:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p = buffer + strlen(buffer); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_stack.c:793:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(tmp_buf, buffer, p - buffer ); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_stack.c:829:72: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_hash_find(XG(context).exception_breakpoints, error_type_str, strlen(error_type_str), (void *) &extra_brk_info) || data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_stack.c:1530:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int func_name_len = strlen(func_name); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_stack.c:1544:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). aggr_key_len = strlen(aggr_key); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_str.c:33:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int l = strlen(str); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_superglobals.c:150:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). s = zend_string_init(elem->ptr, strlen(elem->ptr), 0); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_superglobals.c:162:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). } else if (ht && zend_hash_find(ht, elem->ptr, strlen(elem->ptr) + 1, (void **) &z) == SUCCESS) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_superglobals.c:199:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *p = tok + strlen(tok) - 1; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_trace_computerized.c:136:70: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zend_string *i_filename = zend_string_init(fse->include_filename, strlen(fse->include_filename), 0); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_trace_computerized.c:146:53: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). escaped = php_addcslashes(fse->include_filename, strlen(fse->include_filename), &tmp_len, 0, "'\\\0..\37", 6 TSRMLS_CC); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_trace_textual.c:200:70: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zend_string *i_filename = zend_string_init(fse->include_filename, strlen(fse->include_filename), 0); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_trace_textual.c:210:53: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). escaped = php_addcslashes(fse->include_filename, strlen(fse->include_filename), &tmp_len, 0, "'\\\0..\37", 6 TSRMLS_CC); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_tracing.c:61:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (fname && strlen(fname)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_tracing.c:64:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!strlen(XG(trace_output_name)) || data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_tracing.c:70:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (IS_SLASH(XG(trace_output_dir)[strlen(XG(trace_output_dir)) - 1])) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_var.c:830:82: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zend_class_entry *ce = xdebug_fetch_class(XG(active_fse)->function.class, strlen(XG(active_fse)->function.class), ZEND_FETCH_CLASS_SELF TSRMLS_CC); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_var.c:833:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). cc_length = strlen(STR_NAME_VAL(ce->name)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_var.c:1821:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). item->name_len = strlen(item->name); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_var.c:1928:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). name_len = strlen(name); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_var.c:2019:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (tmp_name[strlen(tmp_name) - 2] == ':' && tmp_name[strlen(tmp_name) - 1] == ':') { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_var.c:2019:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (tmp_name[strlen(tmp_name) - 2] == ':' && tmp_name[strlen(tmp_name) - 1] == ':') { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_var.c:2020:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmp_name[strlen(tmp_name) - 2] = '\0'; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_var.c:2642:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(XG(file_link_format)) > 0) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_xml.c:157:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_xml_add_text_ex(xml, text, strlen(text), 1, 0); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_xml.c:162:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_xml_add_text_ex(xml, text, strlen(text), 1, 1); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_xml.h:60:119: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define xdebug_xml_add_attribute_ex(x,a,v,fa,fv) { char *ta = (a), *tv = (v); xdebug_xml_add_attribute_exl((x), (ta), strlen((ta)), (tv), strlen((tv)), fa, fv); } data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.5.5/xdebug_xml.h:60:139: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define xdebug_xml_add_attribute_ex(x,a,v,fa,fv) { char *ta = (a), *tv = (v); xdebug_xml_add_attribute_exl((x), (ta), strlen((ta)), (tv), strlen((tv)), fa, fv); } data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/debugclient/main.c:306:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). cmd[strlen(cmd) - 1] = '\0'; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/debugclient/main.c:316:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (prev_cmd && ((strlen(cmd) == 0) || (strlen(cmd) == 1 && cmd[0] == '\n'))) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/debugclient/main.c:316:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (prev_cmd && ((strlen(cmd) == 0) || (strlen(cmd) == 1 && cmd[0] == '\n'))) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/debugclient/main.c:326:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (send(fd, cmd, strlen(cmd), MSG_NOSIGNAL) == -1) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/debugclient/usefulstuff.c:49:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). newl = read(socket, buffer, READ_BUFFER_SIZE); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/usefulstuff.c:72:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). newl = read(socketfd, buffer, READ_BUFFER_SIZE); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/usefulstuff.c:137:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). endp = str + strlen(str); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/usefulstuff.c:140:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p2 = xdebug_memnstr(str, delim, strlen(delim), endp); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/usefulstuff.c:145:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). args->args[args->c - 1] = (char*) xdmalloc(strlen(str) + 1); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/usefulstuff.c:146:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memcpy(args->args[args->c - 1], p1, strlen(str)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/usefulstuff.c:147:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). args->args[args->c - 1][strlen(str)] = '\0'; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/usefulstuff.c:155:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p1 = p2 + strlen(delim); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/usefulstuff.c:156:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). } while ((p2 = xdebug_memnstr(p1, delim, strlen(delim), endp)) != NULL && (limit == -1 || --limit > 1)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/usefulstuff.c:315:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_raw_url_decode(dfp, strlen(dfp)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/usefulstuff.c:325:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l = strlen(ret); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/usefulstuff.c:349:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). encoded_fileurl = xdebug_raw_url_encode(fileurl, strlen(fileurl), &new_len, 1); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/usefulstuff.c:366:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). new_state.cwd_length = strlen(cwd); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/usefulstuff.c:389:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l = strlen(tmp); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/usefulstuff.c:467:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). filename_len += (fname ? strlen(fname) : 0); /* filename */ data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/usefulstuff.c:468:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). filename_len += (extension ? strlen(extension) : 0) + 1; /* extension (+ ".") */ data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/usefulstuff.c:471:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fname[NAME_MAX - (extension ? strlen(extension) : 0 )] = '\0'; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/usefulstuff.c:559:70: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_str_add(&fname, xdebug_sprintf("%lu", xdebug_crc32(cwd, strlen(cwd))), 1); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/usefulstuff.c:654:93: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ((data = zend_hash_str_find(Z_ARRVAL(PG(http_globals)[TRACK_VARS_COOKIE]), sess_name, strlen(sess_name))) != NULL) && data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug.c:621:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zend_string *ini_name = zend_string_init(name, strlen(name), 0); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug.c:622:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zend_string *ini_val = zend_string_init(envval, strlen(envval), 0); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug.c:1578:90: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (trigger_val = zend_hash_str_find(Z_ARR(PG(http_globals)[TRACK_VARS_GET]), var_name, strlen(var_name))) != NULL data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug.c:1580:91: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (trigger_val = zend_hash_str_find(Z_ARR(PG(http_globals)[TRACK_VARS_POST]), var_name, strlen(var_name))) != NULL data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug.c:1582:93: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (trigger_val = zend_hash_str_find(Z_ARR(PG(http_globals)[TRACK_VARS_COOKIE]), var_name, strlen(var_name))) != NULL data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug.c:1762:82: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (xdebug_hash_find(XG(context).function_breakpoints, fse->function.function, strlen(fse->function.function), (void *) &extra_brk_info)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug.c:1782:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmp_len = strlen(fse->function.class) + strlen(fse->function.function) + 3; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug.c:1782:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmp_len = strlen(fse->function.class) + strlen(fse->function.function) + 3; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug.c:1873:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && XG(trace_output_dir) && strlen(XG(trace_output_dir)) data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug.c:2170:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((strlen(header) > prefix_len + 1) && (header[prefix_len] == ':') && (strncasecmp(header, prefix, prefix_len) == 0)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug.c:2195:63: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_header_remove_with_prefix(XG(headers), h->header, strlen(h->header) TSRMLS_CC); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_branch_info.c:364:60: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!xdebug_hash_find(XG(code_coverage_info), file_name, strlen(file_name), (void *) &file)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_branch_info.c:377:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!xdebug_hash_find(file->functions, function_name, strlen(function_name), (void *) &function)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_branch_info.c:404:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!xdebug_hash_find(XG(visited_branches), key, strlen(key), (void*) &dummy)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_branch_info.c:406:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_hash_add(XG(visited_branches), key, strlen(key), NULL); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_branch_info.c:426:59: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!xdebug_hash_find(XG(code_coverage_info), filename, strlen(filename), (void *) &file)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_branch_info.c:439:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!xdebug_hash_find(file->functions, function_name, strlen(function_name), (void *) &function)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_branch_info.c:460:59: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!xdebug_hash_find(XG(code_coverage_info), filename, strlen(filename), (void *) &file)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_branch_info.c:464:54: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_hash_add(XG(code_coverage_info), filename, strlen(filename), file); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_branch_info.c:471:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!xdebug_hash_find(file->functions, function_name, strlen(function_name), (void *) &function)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_branch_info.c:475:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_hash_add(file->functions, function_name, strlen(function_name), function); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_code_coverage.c:660:59: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!xdebug_hash_find(XG(code_coverage_info), filename, strlen(filename), (void *) &file)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_code_coverage.c:664:54: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_hash_add(XG(code_coverage_info), filename, strlen(filename), file); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_com.c:69:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(sa.sun_path, path, sizeof(sa.sun_path) - 1); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_com.c:112:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!strncmp(hostname, "unix://", strlen("unix://"))) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_com.c:117:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return xdebug_create_socket_unix(hostname + strlen("unix://") TSRMLS_CC); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_com.c:354:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (XG(remote_log) && strlen(XG(remote_log))) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_com.c:362:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). } else if (strlen(XG(remote_log))) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_com.c:585:82: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_setcookie("XDEBUG_SESSION", sizeof("XDEBUG_SESSION") - 1, XG(ide_key), strlen(XG(ide_key)), time(NULL) + XG(remote_cookie_expire_time), "/", 1, NULL, 0, 0, 1, 0); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_com.h:40:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define SSEND(a,b) send(a,b,strlen(b),0) data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_com.h:45:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define SSEND(a,b) write(a,b,strlen(b)) data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_com.h:46:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define SREAD(a,b,c) read(a,b,c) data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_compat.h:56:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # define HASH_KEY_STRLEN(k) (strlen(k)) data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_filter.c:63:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strncasecmp(filter, fse->filename, strlen(filter)) == 0) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_filter.c:72:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strncasecmp(filter, fse->filename, strlen(filter)) == 0) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_filter.c:81:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!fse->function.class && strlen(filter) == 0) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_filter.c:85:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (fse->function.class && strlen(filter) > 0 && strncasecmp(filter, fse->function.class, strlen(filter)) == 0) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_filter.c:85:92: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (fse->function.class && strlen(filter) > 0 && strncasecmp(filter, fse->function.class, strlen(filter)) == 0) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_filter.c:94:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!fse->function.class && strlen(filter) == 0) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_filter.c:98:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (fse->function.class && strlen(filter) > 0 && strncasecmp(filter, fse->function.class, strlen(filter)) == 0) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_filter.c:98:92: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (fse->function.class && strlen(filter) > 0 && strncasecmp(filter, fse->function.class, strlen(filter)) == 0) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_gc_stats.c:113:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (fname && strlen(fname)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_gc_stats.c:116:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!strlen(XG(gc_stats_output_name)) || data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_gc_stats.c:122:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (IS_SLASH(XG(gc_stats_output_dir)[strlen(XG(gc_stats_output_dir)) - 1])) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:421:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (xdebug_hash_find(XG(context).eval_id_lookup, key, strlen(key), (void *) &ei)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:454:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). end_marker = filename_to_use + strlen(filename_to_use) - strlen("eval()'d code"); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:454:59: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). end_marker = filename_to_use + strlen(filename_to_use) - strlen("eval()'d code"); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:456:69: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (xdebug_hash_find(XG(context).eval_id_lookup, filename_to_use, strlen(filename_to_use), (void *) &ei)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:530:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_hash_add(context->breakpoint_list, hkey, strlen(hkey), (void*) admin); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:540:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (xdebug_hash_find(context->breakpoint_list, hkey, strlen(hkey), (void *) &admin)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:552:57: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (xdebug_hash_delete(context->breakpoint_list, hkey, strlen(hkey))) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:617:58: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_xml_add_text_ex(condition, brk_info->condition, strlen(brk_info->condition), 0, 1); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:656:65: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (xdebug_hash_find(XG(context).function_breakpoints, hkey, strlen(hkey), (void *) &brk_info)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:662:66: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (xdebug_hash_find(XG(context).exception_breakpoints, hkey, strlen(hkey), (void *) &brk_info)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:703:67: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (xdebug_hash_delete(XG(context).function_breakpoints, hkey, strlen(hkey))) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:709:68: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (xdebug_hash_delete(XG(context).exception_breakpoints, hkey, strlen(hkey))) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:916:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). brk_info->file_len = strlen(brk_info->file); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:929:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). brk_info->file_len = strlen(brk_info->file); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:971:67: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). res = xdebug_hash_add(context->function_breakpoints, tmp_name, strlen(tmp_name), (void*) brk_info); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:1892:67: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zend_class_entry *ce = xdebug_fetch_class(fse->function.class, strlen(fse->function.class), ZEND_FETCH_CLASS_DEFAULT TSRMLS_CC); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:2079:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(line)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:2527:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmp_file_len = strlen(tmp_file); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:2683:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmp_len = strlen(ctxt->fse->function.class) + strlen(ctxt->fse->function.function) + 3; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:2683:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmp_len = strlen(ctxt->fse->function.class) + strlen(ctxt->fse->function.function) + 3; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:2743:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!xdebug_hash_find(context->eval_id_lookup, key, strlen(key), (void *) &ei)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:2981:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ei->contents = xdstrndup(fse->include_filename, strlen(fse->include_filename)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:2985:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_hash_add(context->eval_id_lookup, key, strlen(key), (void*) ei); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_handler_dbgp.c:2988:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_hash_add(context->eval_id_lookup, key, strlen(key), (void*) ei); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_profiler.c:78:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!strlen(XG(profiler_output_name)) || data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_profiler.c:86:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (IS_SLASH(XG(profiler_output_dir)[strlen(XG(profiler_output_dir)) - 1])) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_profiler.c:110:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ctr.line_len = strlen(ctr.line); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_profiler.c:185:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (xdebug_hash_find(XG(profile_filename_refs), name, strlen(name), (void*) &nr)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_profiler.c:189:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_hash_add(XG(profile_filename_refs), name, strlen(name), (void*) (size_t) XG(profile_last_filename_ref)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_profiler.c:198:60: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (xdebug_hash_find(XG(profile_functionname_refs), name, strlen(name), (void*) &nr)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_profiler.c:202:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_hash_add(XG(profile_functionname_refs), name, strlen(name), (void*) (size_t) XG(profile_last_functionname_ref)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_stack.c:274:68: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmp = php_escape_html_entities((unsigned char *) first_closing, strlen(first_closing), 0, 0, NULL TSRMLS_CC); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_stack.c:286:61: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmp = php_escape_html_entities((unsigned char *) buffer, strlen(buffer), 0, 0, NULL TSRMLS_CC); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_stack.c:294:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(XG(file_link_format)) > 0 && html) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_stack.c:469:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(XG(file_link_format)) > 0) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_stack.c:572:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p = buffer + strlen(buffer); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_stack.c:577:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p = buffer + strlen(buffer); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_stack.c:582:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(tmp_buf, buffer, p - buffer); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_stack.c:739:72: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_hash_find(XG(context).exception_breakpoints, error_type_str, strlen(error_type_str), (void *) &extra_brk_info) || data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_stack.c:958:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int length = strlen(fname); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_stack.c:959:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int closure_length = strlen("{closure}"); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_stack.c:977:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_str_addl(&tmp, fname, strlen(fname) - 1, 0); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_stack.c:1324:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int func_name_len = strlen(func_name); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_stack.c:1338:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). aggr_key_len = strlen(aggr_key); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_str.c:44:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int l = strlen(str); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_str.c:123:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return xdebug_str_create(c, strlen(c)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_str.h:28:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define XDEBUG_STR_WRAP_CHAR(v) (&((xdebug_str){strlen(v), strlen(v)+1, ((char*)(v))})) data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_str.h:28:60: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define XDEBUG_STR_WRAP_CHAR(v) (&((xdebug_str){strlen(v), strlen(v)+1, ((char*)(v))})) data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_superglobals.c:123:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). s = zend_string_init(elem->ptr, strlen(elem->ptr), 0); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_superglobals.c:164:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *p = tok + strlen(tok) - 1; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_trace_computerized.c:139:70: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zend_string *i_filename = zend_string_init(fse->include_filename, strlen(fse->include_filename), 0); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_trace_textual.c:186:70: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zend_string *i_filename = zend_string_init(fse->include_filename, strlen(fse->include_filename), 0); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_tracing.c:61:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (fname && strlen(fname)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_tracing.c:64:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!strlen(XG(trace_output_name)) || data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_tracing.c:70:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (IS_SLASH(XG(trace_output_dir)[strlen(XG(trace_output_dir)) - 1])) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_var.c:771:82: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zend_class_entry *ce = xdebug_fetch_class(XG(active_fse)->function.class, strlen(XG(active_fse)->function.class), ZEND_FETCH_CLASS_SELF TSRMLS_CC); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_var.c:774:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). cc_length = strlen(STR_NAME_VAL(ce->name)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_var.c:1672:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). item->name_len = strlen(item->name); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_var.c:1791:61: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmp_base64 = xdebug_base64_encode((unsigned char*) value, strlen(value), &new_len); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_var.c:1855:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). name = xdebug_str_create(tmp_idx, strlen(tmp_idx)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_var.c:2576:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(XG(file_link_format)) > 0) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_xml.c:157:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_xml_add_text_ex(xml, text, strlen(text), 1, 0); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_xml.c:162:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_xml_add_text_ex(xml, text, strlen(text), 1, 1); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_xml.h:60:125: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define xdebug_xml_add_attribute_ex(x,a,v,fa,fv) { const char *ta = (a), *tv = (v); xdebug_xml_add_attribute_exl((x), (ta), strlen((ta)), (tv), strlen((tv)), fa, fv); } data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.8.1/xdebug_xml.h:60:145: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define xdebug_xml_add_attribute_ex(x,a,v,fa,fv) { const char *ta = (a), *tv = (v); xdebug_xml_add_attribute_exl((x), (ta), strlen((ta)), (tv), strlen((tv)), fa, fv); } data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/debugclient/main.c:306:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). cmd[strlen(cmd) - 1] = '\0'; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/debugclient/main.c:316:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (prev_cmd && ((strlen(cmd) == 0) || (strlen(cmd) == 1 && cmd[0] == '\n'))) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/debugclient/main.c:316:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (prev_cmd && ((strlen(cmd) == 0) || (strlen(cmd) == 1 && cmd[0] == '\n'))) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/debugclient/main.c:326:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (send(fd, cmd, strlen(cmd), MSG_NOSIGNAL) == -1) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/debugclient/usefulstuff.c:49:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). newl = read(socket, buffer, READ_BUFFER_SIZE); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/base/filter.c:60:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strncasecmp(filter, fse->filename, strlen(filter)) == 0) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/base/filter.c:69:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strncasecmp(filter, fse->filename, strlen(filter)) == 0) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/base/filter.c:78:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!fse->function.class && strlen(filter) == 0) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/base/filter.c:82:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (fse->function.class && strlen(filter) > 0 && strncasecmp(filter, fse->function.class, strlen(filter)) == 0) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/base/filter.c:82:92: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (fse->function.class && strlen(filter) > 0 && strncasecmp(filter, fse->function.class, strlen(filter)) == 0) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/base/filter.c:91:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!fse->function.class && strlen(filter) == 0) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/base/filter.c:95:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (fse->function.class && strlen(filter) > 0 && strncasecmp(filter, fse->function.class, strlen(filter)) == 0) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/base/filter.c:95:92: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (fse->function.class && strlen(filter) > 0 && strncasecmp(filter, fse->function.class, strlen(filter)) == 0) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/base/stack.c:212:68: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmp = php_escape_html_entities((unsigned char *) first_closing, strlen(first_closing), 0, 0, NULL); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/base/stack.c:224:61: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmp = php_escape_html_entities((unsigned char *) buffer, strlen(buffer), 0, 0, NULL); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/base/stack.c:232:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(XINI_BASE(file_link_format)) > 0 && html) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/base/stack.c:407:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(XINI_BASE(file_link_format)) > 0) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/base/stack.c:510:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p = buffer + strlen(buffer); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/base/stack.c:515:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p = buffer + strlen(buffer); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/base/stack.c:520:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(tmp_buf, buffer, p - buffer); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/base/stack.c:947:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int length = strlen(fname); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/base/stack.c:948:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int closure_length = strlen("{closure}"); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/base/stack.c:966:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_str_addl(&tmp, fname, strlen(fname) - 1, 0); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/base/stack.c:1323:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int func_name_len = strlen(func_name); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/base/superglobals.c:126:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). s = zend_string_init(elem->ptr, strlen(elem->ptr), 0); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/base/superglobals.c:167:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *p = tok + strlen(tok) - 1; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/coverage/branch_info.c:351:64: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!xdebug_hash_find(XG_COV(code_coverage_info), file_name, strlen(file_name), (void *) &file)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/coverage/branch_info.c:364:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!xdebug_hash_find(file->functions, function_name, strlen(function_name), (void *) &function)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/coverage/branch_info.c:391:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!xdebug_hash_find(XG_COV(visited_branches), key, strlen(key), (void*) &dummy)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/coverage/branch_info.c:393:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_hash_add(XG_COV(visited_branches), key, strlen(key), NULL); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/coverage/branch_info.c:413:63: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!xdebug_hash_find(XG_COV(code_coverage_info), filename, strlen(filename), (void *) &file)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/coverage/branch_info.c:426:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!xdebug_hash_find(file->functions, function_name, strlen(function_name), (void *) &function)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/coverage/branch_info.c:447:63: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!xdebug_hash_find(XG_COV(code_coverage_info), filename, strlen(filename), (void *) &file)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/coverage/branch_info.c:451:58: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_hash_add(XG_COV(code_coverage_info), filename, strlen(filename), file); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/coverage/branch_info.c:458:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!xdebug_hash_find(file->functions, function_name, strlen(function_name), (void *) &function)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/coverage/branch_info.c:462:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_hash_add(file->functions, function_name, strlen(function_name), function); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/coverage/code_coverage.c:144:63: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!xdebug_hash_find(XG_COV(code_coverage_info), filename, strlen(filename), (void *) &file)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/coverage/code_coverage.c:148:58: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_hash_add(XG_COV(code_coverage_info), filename, strlen(filename), file); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/com.c:71:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(sa.sun_path, path, sizeof(sa.sun_path) - 1); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/com.c:114:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!strncmp(hostname, "unix://", strlen("unix://"))) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/com.c:119:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return xdebug_create_socket_unix(hostname + strlen("unix://")); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/com.c:317:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (XINI_DBG(remote_log) && strlen(XINI_DBG(remote_log))) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/com.c:325:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). } else if (strlen(XINI_DBG(remote_log))) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/com.c:544:86: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_setcookie("XDEBUG_SESSION", sizeof("XDEBUG_SESSION") - 1, XG_DBG(ide_key), strlen(XG_DBG(ide_key)), time(NULL) + XINI_DBG(remote_cookie_expire_time), "/", 1, NULL, 0, 0, 1, 0); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/com.h:40:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define SSEND(a,b) send(a,b,strlen(b),0) data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/com.h:45:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define SSEND(a,b) write(a,b,strlen(b)) data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/com.h:46:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define SREAD(a,b,c) read(a,b,c) data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/debugger.c:346:76: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_hash_find(XG_DBG(context).exception_breakpoints, error_type_str, strlen(error_type_str), (void *) &extra_brk_info) || data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/debugger.c:370:86: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (xdebug_hash_find(XG_DBG(context).function_breakpoints, fse->function.function, strlen(fse->function.function), (void *) &extra_brk_info)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/debugger.c:390:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmp_len = strlen(fse->function.class) + strlen(fse->function.function) + 3; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/debugger.c:390:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmp_len = strlen(fse->function.class) + strlen(fse->function.function) + 3; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/debugger.c:720:61: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zend_string *eval_string = zend_string_init(eval_filename, strlen(eval_filename), 0); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:436:60: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (xdebug_hash_find(XG_DBG(context).eval_id_lookup, key, strlen(key), (void *) &ei)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:469:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). end_marker = filename_to_use + strlen(filename_to_use) - strlen("eval()'d code"); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:469:59: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). end_marker = filename_to_use + strlen(filename_to_use) - strlen("eval()'d code"); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:471:73: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (xdebug_hash_find(XG_DBG(context).eval_id_lookup, filename_to_use, strlen(filename_to_use), (void *) &ei)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:544:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_hash_add(context->breakpoint_list, hkey, strlen(hkey), (void*) admin); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:554:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (xdebug_hash_find(context->breakpoint_list, hkey, strlen(hkey), (void *) &admin)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:566:57: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (xdebug_hash_delete(context->breakpoint_list, hkey, strlen(hkey))) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:629:58: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_xml_add_text_ex(condition, brk_info->condition, strlen(brk_info->condition), 0, 1); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:666:69: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (xdebug_hash_find(XG_DBG(context).function_breakpoints, hkey, strlen(hkey), (void *) &brk_info)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:672:70: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (xdebug_hash_find(XG_DBG(context).exception_breakpoints, hkey, strlen(hkey), (void *) &brk_info)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:712:71: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (xdebug_hash_delete(XG_DBG(context).function_breakpoints, hkey, strlen(hkey))) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:718:72: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (xdebug_hash_delete(XG_DBG(context).exception_breakpoints, hkey, strlen(hkey))) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:919:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). brk_info->file_len = strlen(brk_info->file); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:932:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). brk_info->file_len = strlen(brk_info->file); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:974:67: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). res = xdebug_hash_add(context->function_breakpoints, tmp_name, strlen(tmp_name), (void*) brk_info); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:1897:67: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zend_class_entry *ce = xdebug_fetch_class(fse->function.class, strlen(fse->function.class), ZEND_FETCH_CLASS_DEFAULT); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:2086:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(line)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:2296:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). newl = read(socketfd, buffer, READ_BUFFER_SIZE); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:2597:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmp_file_len = strlen(tmp_file); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:2961:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ei->contents = xdstrndup(fse->include_filename, strlen(fse->include_filename)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:2965:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_hash_add(context->eval_id_lookup, key, strlen(key), (void*) ei); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/debugger/handler_dbgp.c:2968:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_hash_add(context->eval_id_lookup, key, strlen(key), (void*) ei); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/gcstats/gc_stats.c:116:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (fname && strlen(fname)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/gcstats/gc_stats.c:119:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!strlen(XINI_GCSTATS(output_name)) || data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/gcstats/gc_stats.c:125:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (IS_SLASH(XINI_GCSTATS(output_dir)[strlen(XINI_GCSTATS(output_dir)) - 1])) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/compat.h:52:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). # define HASH_KEY_STRLEN(k) (strlen(k)) data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/lib.c:151:90: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (trigger_val = zend_hash_str_find(Z_ARR(PG(http_globals)[TRACK_VARS_GET]), var_name, strlen(var_name))) != NULL data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/lib.c:153:91: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (trigger_val = zend_hash_str_find(Z_ARR(PG(http_globals)[TRACK_VARS_POST]), var_name, strlen(var_name))) != NULL data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/lib.c:155:93: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (trigger_val = zend_hash_str_find(Z_ARR(PG(http_globals)[TRACK_VARS_COOKIE]), var_name, strlen(var_name))) != NULL data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/str.c:44:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int l = strlen(str); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/str.c:123:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return xdebug_str_create(c, strlen(c)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/str.h:30:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define XDEBUG_STR_WRAP_CHAR(v) (&((xdebug_str){strlen(v), strlen(v)+1, ((char*)(v))})) data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/str.h:30:60: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define XDEBUG_STR_WRAP_CHAR(v) (&((xdebug_str){strlen(v), strlen(v)+1, ((char*)(v))})) data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/usefulstuff.c:78:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). endp = str + strlen(str); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/usefulstuff.c:81:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p2 = xdebug_memnstr(str, delim, strlen(delim), endp); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/usefulstuff.c:86:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). args->args[args->c - 1] = (char*) xdmalloc(strlen(str) + 1); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/usefulstuff.c:87:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memcpy(args->args[args->c - 1], p1, strlen(str)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/usefulstuff.c:88:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). args->args[args->c - 1][strlen(str)] = '\0'; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/usefulstuff.c:96:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p1 = p2 + strlen(delim); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/usefulstuff.c:97:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). } while ((p2 = xdebug_memnstr(p1, delim, strlen(delim), endp)) != NULL && (limit == -1 || --limit > 1)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/usefulstuff.c:256:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_raw_url_decode(dfp, strlen(dfp)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/usefulstuff.c:266:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l = strlen(ret); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/usefulstuff.c:290:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). encoded_fileurl = xdebug_raw_url_encode(fileurl, strlen(fileurl), &new_len, 1); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/usefulstuff.c:307:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). new_state.cwd_length = strlen(cwd); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/usefulstuff.c:330:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l = strlen(tmp); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/usefulstuff.c:395:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). filename_len += (fname ? strlen(fname) : 0); /* filename */ data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/usefulstuff.c:396:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). filename_len += (extension ? strlen(extension) : 0) + 1; /* extension (+ ".") */ data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/usefulstuff.c:399:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fname[NAME_MAX - (extension ? strlen(extension) : 0 )] = '\0'; data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/usefulstuff.c:486:70: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_str_add(&fname, xdebug_sprintf("%lu", xdebug_crc32(cwd, strlen(cwd))), 1); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/usefulstuff.c:581:93: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ((data = zend_hash_str_find(Z_ARRVAL(PG(http_globals)[TRACK_VARS_COOKIE]), sess_name, strlen(sess_name))) != NULL) && data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/var.c:831:78: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zend_class_entry *ce = xdebug_fetch_class(active_fse->function.class, strlen(active_fse->function.class), ZEND_FETCH_CLASS_SELF); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/var.c:834:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). cc_length = strlen(STR_NAME_VAL(ce->name)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/var_export_html.c:283:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(XINI_BASE(file_link_format)) > 0) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/var_export_xml.c:161:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). item->name_len = strlen(item->name); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/var_export_xml.c:206:61: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmp_base64 = xdebug_base64_encode((unsigned char*) value, strlen(value), &new_len); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/var_export_xml.c:270:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). name = xdebug_str_create(tmp_idx, strlen(tmp_idx)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/xml.c:157:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_xml_add_text_ex(xml, text, strlen(text), 1, 0); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/xml.c:162:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_xml_add_text_ex(xml, text, strlen(text), 1, 1); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/xml.h:60:125: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define xdebug_xml_add_attribute_ex(x,a,v,fa,fv) { const char *ta = (a), *tv = (v); xdebug_xml_add_attribute_exl((x), (ta), strlen((ta)), (tv), strlen((tv)), fa, fv); } data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/lib/xml.h:60:145: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define xdebug_xml_add_attribute_ex(x,a,v,fa,fv) { const char *ta = (a), *tv = (v); xdebug_xml_add_attribute_exl((x), (ta), strlen((ta)), (tv), strlen((tv)), fa, fv); } data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/profiler/profiler.c:161:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!strlen(XINI_PROF(profiler_output_name)) || data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/profiler/profiler.c:169:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (IS_SLASH(XINI_PROF(profiler_output_dir)[strlen(XINI_PROF(profiler_output_dir)) - 1])) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/profiler/profiler.c:193:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ctr.line_len = strlen(ctr.line); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/profiler/profiler.c:268:61: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (xdebug_hash_find(XG_PROF(profile_filename_refs), name, strlen(name), (void*) &nr)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/profiler/profiler.c:272:57: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_hash_add(XG_PROF(profile_filename_refs), name, strlen(name), (void*) (size_t) XG_PROF(profile_last_filename_ref)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/profiler/profiler.c:281:65: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (xdebug_hash_find(XG_PROF(profile_functionname_refs), name, strlen(name), (void*) &nr)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/profiler/profiler.c:285:61: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_hash_add(XG_PROF(profile_functionname_refs), name, strlen(name), (void*) (size_t) XG_PROF(profile_last_functionname_ref)); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/tracing/trace_computerized.c:145:70: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zend_string *i_filename = zend_string_init(fse->include_filename, strlen(fse->include_filename), 0); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/tracing/trace_textual.c:191:70: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zend_string *i_filename = zend_string_init(fse->include_filename, strlen(fse->include_filename), 0); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/tracing/tracing.c:61:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (fname && strlen(fname)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/tracing/tracing.c:64:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!strlen(XINI_TRACE(trace_output_name)) || data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/tracing/tracing.c:70:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (IS_SLASH(XINI_TRACE(trace_output_dir)[strlen(XINI_TRACE(trace_output_dir)) - 1])) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/src/tracing/tracing.c:729:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). && XINI_TRACE(trace_output_dir) && strlen(XINI_TRACE(trace_output_dir)) data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/xdebug.c:517:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zend_string *ini_name = zend_string_init(name, strlen(name), 0); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/xdebug.c:518:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zend_string *ini_val = zend_string_init(envval, strlen(envval), 0); data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/xdebug.c:690:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((strlen(header) > prefix_len + 1) && (header[prefix_len] == ':') && (strncasecmp(header, prefix, prefix_len) == 0)) { data/xdebug-2.9.6+2.8.1+2.5.5/xdebug-2.9.6/xdebug.c:715:68: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). xdebug_header_remove_with_prefix(XG_BASE(headers), h->header, strlen(h->header)); ANALYSIS SUMMARY: Hits = 582 Lines analyzed = 59707 in approximately 1.51 seconds (39450 lines/second) Physical Source Lines of Code (SLOC) = 45505 Hits@level = [0] 296 [1] 399 [2] 139 [3] 28 [4] 16 [5] 0 Hits@level+ = [0+] 878 [1+] 582 [2+] 183 [3+] 44 [4+] 16 [5+] 0 Hits/KSLOC@level+ = [0+] 19.2946 [1+] 12.7898 [2+] 4.02154 [3+] 0.966927 [4+] 0.35161 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.