[3.14] gh-149017: Upgrade bundled Expat to 2.8.0 (GH-149020) by StanFromIreland · Pull Request #149073 · python/cpython
# include <stdint.h> // for uint8_t # include <stdlib.h> # include "expat_external.h"
/* Sets the hash salt to use for internal hash calculations. Helps in preventing DoS attacks based on predicting hash function behavior. This must be called before parsing is started. Returns XML_TRUE if successful, XML_FALSE when called after parsing has started or when parser is NULL. Added in Expat 2.8.0. */ XMLPARSEAPI(XML_Bool) XML_SetHashSalt16Bytes(XML_Parser parser, const uint8_t entropy[16]);
/* If XML_Parse or XML_ParseBuffer have returned XML_STATUS_ERROR, then XML_GetErrorCode returns information about the error. */
# ifdef __cplusplus }