Security Issues
On 1.0.5 and before, a bug that has accessed deleted heap memory in chardet and chardet_r api has been fixed. (#18) Thanks for @gaoxiang-ut
Changes:
-
fixed #9 configure.ac needs subdir-objects
-
fixed #10 autogen failure because AM_PROG_AR with automake 1.11.1
-
fixed #12 No include guard
-
fixed #13 bom member has been added to the DetectObj structure
- New unicode language model : BOCU-1, GB-18030, SCSU, UTF-1, UTF-7, UTF-EBCDIC
diff --git a/src/chardet.h b/src/chardet.h index 84975a3..f603a37 100644 --- a/src/chardet.h +++ b/src/chardet.h @@ -89,6 +89,7 @@ extern "C" { typedef struct DetectObject { char * encoding; float confidence; + short bom; } DetectObj; CHARDET_API char * detect_version (void);
#ifdef CHARDET_BOM_CHECK printf ("#1 %s : %s : %f : %d\n", string, obj->encoding, obj->confidence, obj->bom); #else printf ("#1 %s : %s : %f\n", string, obj->encoding, obj->confidence); #endif
-
fixed #14 can't detect short euc-kr
-
fixed #15 support automake style 'make check'
-
fixed #18 SECURITY! Invalid memory approach (heap-use-after-free) (@gaoxiang-ut)