mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 20:43:00 +00:00
[LIBXML2] Update to version 2.9.10. CORE-16952
This commit is contained in:
parent
b82bf8ce16
commit
f22fa382fe
65 changed files with 2245 additions and 2056 deletions
9
sdk/lib/3rdparty/libxml2/hash.c
vendored
9
sdk/lib/3rdparty/libxml2/hash.c
vendored
|
@ -33,7 +33,8 @@
|
|||
* it seems that having hash randomization might be a good idea
|
||||
* when using XML with untrusted data
|
||||
*/
|
||||
#if defined(HAVE_RAND) && defined(HAVE_SRAND) && defined(HAVE_TIME)
|
||||
#if defined(HAVE_RAND) && defined(HAVE_SRAND) && defined(HAVE_TIME) && \
|
||||
!defined(FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION)
|
||||
#define HASH_RANDOMIZATION
|
||||
#endif
|
||||
|
||||
|
@ -78,6 +79,9 @@ struct _xmlHashTable {
|
|||
* xmlHashComputeKey:
|
||||
* Calculate the hash key
|
||||
*/
|
||||
#ifdef __clang__
|
||||
ATTRIBUTE_NO_SANITIZE("unsigned-integer-overflow")
|
||||
#endif
|
||||
static unsigned long
|
||||
xmlHashComputeKey(xmlHashTablePtr table, const xmlChar *name,
|
||||
const xmlChar *name2, const xmlChar *name3) {
|
||||
|
@ -108,6 +112,9 @@ xmlHashComputeKey(xmlHashTablePtr table, const xmlChar *name,
|
|||
return (value % table->size);
|
||||
}
|
||||
|
||||
#ifdef __clang__
|
||||
ATTRIBUTE_NO_SANITIZE("unsigned-integer-overflow")
|
||||
#endif
|
||||
static unsigned long
|
||||
xmlHashComputeQKey(xmlHashTablePtr table,
|
||||
const xmlChar *prefix, const xmlChar *name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue