Exploit databaseDownload repository ZIP
GH-4e14e821fe70fe602c844dd60509c614
dandanllab/php-5.6.40-cve-2026-109618-109619
Sources for CVE-2026-109618
412 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files28
dandanllab/php-5.6.40-cve-2026-109618-109619Revision 6f241e8c620e
- ↑..Parent directory
- COPYRIGHT
- README
- WHATSNEW
- cclass.h
- cname.h
- debug.c
- debug.ih
- engine.c
- engine.ih
- main.c
- main.ih
- mkh
- regcomp.c
- regcomp.ih
- regerror.c
- regerror.ih
- regex.3
- regex.7
- regex.dsp
- regex.dsw
- regex.h
- regex.mak
- regex2.h
- regexec.c
- regfree.c
- split.c
- tests
- utils.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
php-5.6.40/ext/ereg/regex/regfree.c
C · 738 bytes#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include "regex.h"
#include "utils.h"
#include "regex2.h"
/*
- regfree - free everything
= API_EXPORT(void) regfree(regex_t *);
*/
API_EXPORT(void)
regfree(preg)
regex_t *preg;
{
register struct re_guts *g;
if (preg->re_magic != MAGIC1) /* oops */
return; /* nice to complain, but hard */
g = preg->re_g;
if (g == NULL || g->magic != MAGIC2) /* oops again */
return;
preg->re_magic = 0; /* mark it invalid */
g->magic = 0; /* mark it invalid */
if (g->strip != NULL)
free((char *)g->strip);
if (g->sets != NULL)
free((char *)g->sets);
if (g->setbits != NULL)
free((char *)g->setbits);
if (g->must != NULL)
free(g->must);
free((char *)g);
}