Exploit databaseDownload repository ZIP
GH-4642edc2de9658f32424c896f3a2846e
ahallais/php71-debian9-backport
Sources for CVE-2026-109618
412 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files21
ahallais/php71-debian9-backportRevision f1162e18d1be
- ↑..Parent directory
- m4/
- LICENSE
- Makefile.am
- TODO
- TSRM.c
- TSRM.h
- acinclude.m4
- buildconf
- config.w32
- configure.in
- readdir.h
- threads.m4
- tsrm.m4
- tsrm_config.w32.h
- tsrm_config_common.h
- tsrm_nw.c
- tsrm_nw.h
- tsrm_strtok_r.c
- tsrm_strtok_r.h
- tsrm_win32.c
- tsrm_win32.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
sury/build/php7.1-7.1.33/TSRM/tsrm_strtok_r.c
C · 846 bytes#include <stdio.h>
#include "tsrm_config_common.h"
#include "tsrm_strtok_r.h"
static inline int in_character_class(char ch, const char *delim)
{
while (*delim) {
if (*delim == ch) {
return 1;
}
delim++;
}
return 0;
}
TSRM_API char *tsrm_strtok_r(char *s, const char *delim, char **last)
{
char *token;
if (s == NULL) {
s = *last;
}
while (*s && in_character_class(*s, delim)) {
s++;
}
if (!*s) {
return NULL;
}
token = s;
while (*s && !in_character_class(*s, delim)) {
s++;
}
if (!*s) {
*last = s;
} else {
*s = '\0';
*last = s + 1;
}
return token;
}
#if 0
main()
{
char foo[] = "/foo/bar//\\barbara";
char *last;
char *token;
token = tsrm_strtok_r(foo, "/\\", &last);
while (token) {
printf ("Token = '%s'\n", token);
token = tsrm_strtok_r(NULL, "/\\", &last);
}
return 0;
}
#endif