mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-28 23:14:57 +03:00
3
libxml.h
3
libxml.h
@@ -72,7 +72,8 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
#if __clang_major__ >= 12
|
#if (!defined(__apple_build_version__) && __clang_major__ >= 12) || \
|
||||||
|
(defined(__apple_build_version__) && __clang_major__ >= 13)
|
||||||
#define ATTRIBUTE_NO_SANITIZE_INTEGER \
|
#define ATTRIBUTE_NO_SANITIZE_INTEGER \
|
||||||
ATTRIBUTE_NO_SANITIZE("unsigned-integer-overflow") \
|
ATTRIBUTE_NO_SANITIZE("unsigned-integer-overflow") \
|
||||||
ATTRIBUTE_NO_SANITIZE("unsigned-shift-base")
|
ATTRIBUTE_NO_SANITIZE("unsigned-shift-base")
|
||||||
|
|||||||
15
testdict.c
15
testdict.c
@@ -1,3 +1,5 @@
|
|||||||
|
#include "libxml.h"
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <libxml/parser.h>
|
#include <libxml/parser.h>
|
||||||
@@ -6,19 +8,6 @@
|
|||||||
|
|
||||||
/**** dictionary tests ****/
|
/**** dictionary tests ****/
|
||||||
|
|
||||||
#ifdef __clang__
|
|
||||||
#if __clang_major__ >= 12
|
|
||||||
#define ATTRIBUTE_NO_SANITIZE_INTEGER \
|
|
||||||
__attribute__ ((no_sanitize("unsigned-integer-overflow"))) \
|
|
||||||
__attribute__ ((no_sanitize("unsigned-shift-base")))
|
|
||||||
#else
|
|
||||||
#define ATTRIBUTE_NO_SANITIZE_INTEGER \
|
|
||||||
__attribute__ ((no_sanitize("unsigned-integer-overflow")))
|
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
#define ATTRIBUTE_NO_SANITIZE_INTEGER
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* #define WITH_PRINT */
|
/* #define WITH_PRINT */
|
||||||
|
|
||||||
static const char *seeds1[] = {
|
static const char *seeds1[] = {
|
||||||
|
|||||||
Reference in New Issue
Block a user