Exploit databaseDownload repository ZIP
GH-f103b497572b6405c32a7cd6514c0d99
zhqagp/php-7.2
Sources for CVE-2026-109618
412 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files165
zhqagp/php-7.2Revision 2139335c0281
- ↑..Parent directory
- Makefile.am
- cp932_table.h
- emoji2uni.h
- html_entities.c
- html_entities.h
- mbfilter_7bit.c
- mbfilter_7bit.h
- mbfilter_armscii8.c
- mbfilter_armscii8.h
- mbfilter_ascii.c
- mbfilter_ascii.h
- mbfilter_base64.c
- mbfilter_base64.h
- mbfilter_big5.c
- mbfilter_big5.h
- mbfilter_byte2.c
- mbfilter_byte2.h
- mbfilter_byte4.c
- mbfilter_byte4.h
- mbfilter_cp1251.c
- mbfilter_cp1251.h
- mbfilter_cp1252.c
- mbfilter_cp1252.h
- mbfilter_cp1254.c
- mbfilter_cp1254.h
- mbfilter_cp5022x.c
- mbfilter_cp5022x.h
- mbfilter_cp51932.c
- mbfilter_cp51932.h
- mbfilter_cp850.c
- mbfilter_cp850.h
- mbfilter_cp866.c
- mbfilter_cp866.h
- mbfilter_cp932.c
- mbfilter_cp932.h
- mbfilter_cp936.c
- mbfilter_cp936.h
- mbfilter_euc_cn.c
- mbfilter_euc_cn.h
- mbfilter_euc_jp.c
- mbfilter_euc_jp.h
- mbfilter_euc_jp_2004.c
- mbfilter_euc_jp_2004.h
- mbfilter_euc_jp_win.c
- mbfilter_euc_jp_win.h
- mbfilter_euc_kr.c
- mbfilter_euc_kr.h
- mbfilter_euc_tw.c
- mbfilter_euc_tw.h
- mbfilter_gb18030.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
ext/mbstring/libmbfl/filters/mbfilter_iso8859_1.c
C · 2,588 bytes/*
* "streamable kanji code filter and converter"
* Copyright (c) 1998-2002 HappySize, Inc. All rights reserved.
*
* LICENSE NOTICES
*
* This file is part of "streamable kanji code filter and converter",
* which is distributed under the terms of GNU Lesser General Public
* License (version 2) as published by the Free Software Foundation.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with "streamable kanji code filter and converter";
* if not, write to the Free Software Foundation, Inc., 59 Temple Place,
* Suite 330, Boston, MA 02111-1307 USA
*
* The author of this file:
*
*/
/*
* The source code included in this files was separated from mbfilter.c
* by moriyoshi koizumi <[email protected]> on 4 dec 2002.
*
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "mbfilter.h"
#include "mbfilter_iso8859_1.h"
static const char *mbfl_encoding_8859_1_aliases[] = {"ISO_8859-1", "latin1", NULL};
const mbfl_encoding mbfl_encoding_8859_1 = {
mbfl_no_encoding_8859_1,
"ISO-8859-1",
"ISO-8859-1",
(const char *(*)[])&mbfl_encoding_8859_1_aliases,
NULL,
MBFL_ENCTYPE_SBCS
};
const struct mbfl_identify_vtbl vtbl_identify_8859_1 = {
mbfl_no_encoding_8859_1,
mbfl_filt_ident_common_ctor,
mbfl_filt_ident_common_dtor,
mbfl_filt_ident_true
};
const struct mbfl_convert_vtbl vtbl_8859_1_wchar = {
mbfl_no_encoding_8859_1,
mbfl_no_encoding_wchar,
mbfl_filt_conv_common_ctor,
mbfl_filt_conv_common_dtor,
mbfl_filt_conv_8859_1_wchar,
mbfl_filt_conv_common_flush
};
const struct mbfl_convert_vtbl vtbl_wchar_8859_1 = {
mbfl_no_encoding_wchar,
mbfl_no_encoding_8859_1,
mbfl_filt_conv_common_ctor,
mbfl_filt_conv_common_dtor,
mbfl_filt_conv_wchar_8859_1,
mbfl_filt_conv_common_flush
};
#define CK(statement) do { if ((statement) < 0) return (-1); } while (0)
/*
* ISO-8859-1 => wchar
*/
int mbfl_filt_conv_8859_1_wchar(int c, mbfl_convert_filter *filter)
{
return (*filter->output_function)(c, filter->data);
}
/*
* wchar => ISO-8859-1
*/
int mbfl_filt_conv_wchar_8859_1(int c, mbfl_convert_filter *filter)
{
if (c >= 0 && c < 0x100) {
CK((*filter->output_function)(c, filter->data));
} else {
if (filter->illegal_mode != MBFL_OUTPUTFILTER_ILLEGAL_MODE_NONE) {
CK(mbfl_filt_conv_illegal_output(c, filter));
}
}
return c;
}