Exploit databaseDownload repository ZIP
GH-4642edc2de9658f32424c896f3a2846e
ahallais/php71-debian9-backport
Sources for CVE-2026-109618
411 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files55
ahallais/php71-debian9-backportRevision f1162e18d1be
- ↑..Parent directory
- events/
- fpm.c
- fpm.h
- fpm_arrays.h
- fpm_atomic.h
- fpm_children.c
- fpm_children.h
- fpm_cleanup.c
- fpm_cleanup.h
- fpm_clock.c
- fpm_clock.h
- fpm_conf.c
- fpm_conf.h
- fpm_config.h
- fpm_env.c
- fpm_env.h
- fpm_events.c
- fpm_events.h
- fpm_log.c
- fpm_log.h
- fpm_main.c
- fpm_php.c
- fpm_php.h
- fpm_php_trace.c
- fpm_php_trace.h
- fpm_process_ctl.c
- fpm_process_ctl.h
- fpm_request.c
- fpm_request.h
- fpm_scoreboard.c
- fpm_scoreboard.h
- fpm_shm.c
- fpm_shm.h
- fpm_signals.c
- fpm_signals.h
- fpm_sockets.c
- fpm_sockets.h
- fpm_status.c
- fpm_status.h
- fpm_stdio.c
- fpm_stdio.h
- fpm_str.h
- fpm_systemd.c
- fpm_systemd.h
- fpm_trace.c
- fpm_trace.h
- fpm_trace_mach.c
- fpm_trace_pread.c
- fpm_trace_ptrace.c
- fpm_unix.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
sury/build/php7.1-7.1.33/sapi/fpm/fpm/fpm_trace_pread.c
C · 1,193 bytes /* $Id: fpm_trace_pread.c,v 1.7 2008/08/26 15:09:15 anight Exp $ */
/* (c) 2007,2008 Andrei Nigmatulin */
#define _GNU_SOURCE
#define _FILE_OFFSET_BITS 64
#include "fpm_config.h"
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#if HAVE_INTTYPES_H
# include <inttypes.h>
#else
# include <stdint.h>
#endif
#include "fpm_trace.h"
#include "fpm_process_ctl.h"
#include "zlog.h"
static int mem_file = -1;
int fpm_trace_signal(pid_t pid) /* {{{ */
{
if (0 > fpm_pctl_kill(pid, FPM_PCTL_STOP)) {
zlog(ZLOG_SYSERROR, "failed to send SIGSTOP to %d", pid);
return -1;
}
return 0;
}
/* }}} */
int fpm_trace_ready(pid_t pid) /* {{{ */
{
char buf[128];
sprintf(buf, "/proc/%d/" PROC_MEM_FILE, (int) pid);
mem_file = open(buf, O_RDONLY);
if (0 > mem_file) {
zlog(ZLOG_SYSERROR, "failed to open %s", buf);
return -1;
}
return 0;
}
/* }}} */
int fpm_trace_close(pid_t pid) /* {{{ */
{
close(mem_file);
mem_file = -1;
return 0;
}
/* }}} */
int fpm_trace_get_long(long addr, long *data) /* {{{ */
{
if (sizeof(*data) != pread(mem_file, (void *) data, sizeof(*data), (uintptr_t) addr)) {
zlog(ZLOG_SYSERROR, "pread() failed");
return -1;
}
return 0;
}
/* }}} */