diff options
| author | Gregory P. Smith <greg@krypto.org> | 2012-07-14 14:12:35 -0700 |
|---|---|---|
| committer | Gregory P. Smith <greg@krypto.org> | 2012-07-14 14:12:35 -0700 |
| commit | 7c6309c6afebecd9cefe7c547b87cf23abcbe2a3 (patch) | |
| tree | 9852412a7bad47617cd0d42e01d37e3400229b04 /Modules/expat/xmltok_impl.c | |
| parent | 15810673dc33436cbf8d1a6a6f9622249845b205 (diff) | |
| download | cpython-git-7c6309c6afebecd9cefe7c547b87cf23abcbe2a3.tar.gz | |
Update the embedded copy of the expat XML parser to 2.1.0. It brings
with it a vareity of bug fixes, both security and behavior. See
http://www.libexpat.org/ for the list.
NOTE: I already backported the expat hash randomization fix in March.
Fixes issue #14340.
Diffstat (limited to 'Modules/expat/xmltok_impl.c')
| -rw-r--r-- | Modules/expat/xmltok_impl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/expat/xmltok_impl.c b/Modules/expat/xmltok_impl.c index f793a6b8c7..9c2895b877 100644 --- a/Modules/expat/xmltok_impl.c +++ b/Modules/expat/xmltok_impl.c @@ -2,6 +2,9 @@ See the file COPYING for copying permission. */ +/* This file is included! */ +#ifdef XML_TOK_IMPL_C + #ifndef IS_INVALID_CHAR #define IS_INVALID_CHAR(enc, ptr, n) (0) #endif @@ -882,7 +885,7 @@ PREFIX(scanPercent)(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) { if (ptr == end) - return -XML_TOK_PERCENT; + return XML_TOK_PARTIAL; switch (BYTE_TYPE(enc, ptr)) { CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr) case BT_S: case BT_LF: case BT_CR: case BT_PERCNT: @@ -1777,3 +1780,4 @@ PREFIX(updatePosition)(const ENCODING *enc, #undef CHECK_NMSTRT_CASE #undef CHECK_NMSTRT_CASES +#endif /* XML_TOK_IMPL_C */ |
