| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7895a05 commit 8c797ed
14 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -56,6 +56,10 @@ Extension Modules | |||
| 56 | 56 | Library | |
| 57 | 57 | ------- | |
| 58 | 58 | ||
| 59 | + - [Security] bpo-29591: Update expat copy from 2.1.1 to 2.2.0 to get fixes | ||
| 60 | + of CVE-2016-0718 and CVE-2016-4472. See | ||
| 61 | + https://sourceforge.net/p/expat/bugs/537/ for more information. | ||
| 62 | + | ||
| 59 | 63 | - bpo-24484: Avoid race condition in multiprocessing cleanup. | |
| 60 | 64 | ||
| 61 | 65 | - bpo-28994: The traceback no longer displayed for SystemExit raised in | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,5 @@ | |||
| 1 | - Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd | ||
| 2 | - and Clark Cooper | ||
| 3 | - Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006 Expat maintainers. | ||
| 1 | + Copyright (c) 1998-2000 Thai Open Source Software Center Ltd and Clark Cooper | ||
| 2 | + Copyright (c) 2001-2016 Expat maintainers | ||
| 4 | 3 | ||
| 5 | 4 | Permission is hereby granted, free of charge, to any person obtaining | |
| 6 | 5 | a copy of this software and associated documentation files (the | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -342,7 +342,7 @@ XML_SetEntityDeclHandler(XML_Parser parser, | |||
| 342 | 342 | XML_EntityDeclHandler handler); | |
| 343 | 343 | ||
| 344 | 344 | /* OBSOLETE -- OBSOLETE -- OBSOLETE | |
| 345 | - This handler has been superceded by the EntityDeclHandler above. | ||
| 345 | + This handler has been superseded by the EntityDeclHandler above. | ||
| 346 | 346 | It is provided here for backward compatibility. | |
| 347 | 347 | ||
| 348 | 348 | This is called for a declaration of an unparsed (NDATA) entity. | |
@@ -915,8 +915,6 @@ XMLPARSEAPI(int) | |||
| 915 | 915 | XML_SetHashSalt(XML_Parser parser, | |
| 916 | 916 | unsigned long hash_salt); | |
| 917 | 917 | ||
| 918 | - #define XML_HAS_SET_HASH_SALT /* Python Only: Defined for pyexpat.c. */ | ||
| 919 | - | ||
| 920 | 918 | /* If XML_Parse or XML_ParseBuffer have returned XML_STATUS_ERROR, then | |
| 921 | 919 | XML_GetErrorCode returns information about the error. | |
| 922 | 920 | */ | |
@@ -975,9 +973,12 @@ XML_FreeContentModel(XML_Parser parser, XML_Content *model); | |||
| 975 | 973 | ||
| 976 | 974 | /* Exposing the memory handling functions used in Expat */ | |
| 977 | 975 | XMLPARSEAPI(void *) | |
| 976 | + XML_ATTR_MALLOC | ||
| 977 | + XML_ATTR_ALLOC_SIZE(2) | ||
| 978 | 978 | XML_MemMalloc(XML_Parser parser, size_t size); | |
| 979 | 979 | ||
| 980 | 980 | XMLPARSEAPI(void *) | |
| 981 | + XML_ATTR_ALLOC_SIZE(3) | ||
| 981 | 982 | XML_MemRealloc(XML_Parser parser, void *ptr, size_t size); | |
| 982 | 983 | ||
| 983 | 984 | XMLPARSEAPI(void) | |
@@ -1033,14 +1034,12 @@ XMLPARSEAPI(const XML_Feature *) | |||
| 1033 | 1034 | XML_GetFeatureList(void); | |
| 1034 | 1035 | ||
| 1035 | 1036 | ||
| 1036 | - /* Expat follows the GNU/Linux convention of odd number minor version for | ||
| 1037 | - beta/development releases and even number minor version for stable | ||
| 1038 | - releases. Micro is bumped with each release, and set to 0 with each | ||
| 1039 | - change to major or minor version. | ||
| 1037 | + /* Expat follows the semantic versioning convention. | ||
| 1038 | + See http://semver.org. | ||
| 1040 | 1039 | */ | |
| 1041 | 1040 | #define XML_MAJOR_VERSION 2 | |
| 1042 | - #define XML_MINOR_VERSION 1 | ||
| 1043 | - #define XML_MICRO_VERSION 1 | ||
| 1041 | + #define XML_MINOR_VERSION 2 | ||
| 1042 | + #define XML_MICRO_VERSION 0 | ||
| 1044 | 1043 | ||
| 1045 | 1044 | #ifdef __cplusplus | |
| 1046 | 1045 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -69,12 +69,26 @@ | |||
| 69 | 69 | #endif | |
| 70 | 70 | #endif /* not defined XML_STATIC */ | |
| 71 | 71 | ||
| 72 | + #if !defined(XMLIMPORT) && defined(__GNUC__) && (__GNUC__ >= 4) | ||
| 73 | + #define XMLIMPORT __attribute__ ((visibility ("default"))) | ||
| 74 | + #endif | ||
| 72 | 75 | ||
| 73 | 76 | /* If we didn't define it above, define it away: */ | |
| 74 | 77 | #ifndef XMLIMPORT | |
| 75 | 78 | #define XMLIMPORT | |
| 76 | 79 | #endif | |
| 77 | 80 | ||
| 81 | + #if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)) | ||
| 82 | + #define XML_ATTR_MALLOC __attribute__((__malloc__)) | ||
| 83 | + #else | ||
| 84 | + #define XML_ATTR_MALLOC | ||
| 85 | + #endif | ||
| 86 | + | ||
| 87 | + #if defined(__GNUC__) && ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)) | ||
| 88 | + #define XML_ATTR_ALLOC_SIZE(x) __attribute__((__alloc_size__(x))) | ||
| 89 | + #else | ||
| 90 | + #define XML_ATTR_ALLOC_SIZE(x) | ||
| 91 | + #endif | ||
| 78 | 92 | ||
| 79 | 93 | #define XMLPARSEAPI(type) XMLIMPORT type XMLCALL | |
| 80 | 94 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -71,3 +71,25 @@ | |||
| 71 | 71 | #define inline | |
| 72 | 72 | #endif | |
| 73 | 73 | #endif | |
| 74 | + | ||
| 75 | + #ifndef UNUSED_P | ||
| 76 | + # ifdef __GNUC__ | ||
| 77 | + # define UNUSED_P(p) UNUSED_ ## p __attribute__((__unused__)) | ||
| 78 | + # else | ||
| 79 | + # define UNUSED_P(p) UNUSED_ ## p | ||
| 80 | + # endif | ||
| 81 | + #endif | ||
| 82 | + | ||
| 83 | + | ||
| 84 | + #ifdef __cplusplus | ||
| 85 | + extern "C" { | ||
| 86 | + #endif | ||
| 87 | + | ||
| 88 | + | ||
| 89 | + void | ||
| 90 | + align_limit_to_full_utf8_characters(const char * from, const char ** fromLimRef); | ||
| 91 | + | ||
| 92 | + | ||
| 93 | + #ifdef __cplusplus | ||
| 94 | + } | ||
| 95 | + #endif | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments