summaryrefslogtreecommitdiff
path: root/Modules/expat/pyexpatns.h
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2012-03-14 14:26:55 -0700
committerGregory P. Smith <greg@krypto.org>2012-03-14 14:26:55 -0700
commite540dfa6168d0b013bfdc78f1afb5ba484ef1907 (patch)
tree125e812211997ef218dfe5e05cfb288cbe010e59 /Modules/expat/pyexpatns.h
parent34c2894eaeac781adea1ab120a77ae18181b7b22 (diff)
downloadcpython-e540dfa6168d0b013bfdc78f1afb5ba484ef1907.tar.gz
Fixes issue #14234: CVE-2012-0876: Randomize hashes of xml attributes
in the hash table internal to the pyexpat module's copy of the expat library to avoid a denial of service due to hash collisions. Patch by David Malcolm with some modifications by the expat project.
Diffstat (limited to 'Modules/expat/pyexpatns.h')
-rw-r--r--Modules/expat/pyexpatns.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/expat/pyexpatns.h b/Modules/expat/pyexpatns.h
index 7fbd341c2d..2f2f4f95a3 100644
--- a/Modules/expat/pyexpatns.h
+++ b/Modules/expat/pyexpatns.h
@@ -97,6 +97,7 @@
#define XML_SetEntityDeclHandler PyExpat_XML_SetEntityDeclHandler
#define XML_SetExternalEntityRefHandler PyExpat_XML_SetExternalEntityRefHandler
#define XML_SetExternalEntityRefHandlerArg PyExpat_XML_SetExternalEntityRefHandlerArg
+#define XML_SetHashSalt PyExpat_XML_SetHashSalt
#define XML_SetNamespaceDeclHandler PyExpat_XML_SetNamespaceDeclHandler
#define XML_SetNotationDeclHandler PyExpat_XML_SetNotationDeclHandler
#define XML_SetNotStandaloneHandler PyExpat_XML_SetNotStandaloneHandler