fixed out of bounds vector access
[LibreOffice.git] / libxmlsec / xmlsec1-olderlibxml2.patch
blobf2bd85f5113b1b68e0fbde7bd84c59ce36ffc60e
1 --- misc/xmlsec1-1.2.14/src/c14n.c 2010-03-02 15:46:05.000000000 +0000
2 +++ misc/build/xmlsec1-1.2.14/src/c14n.c 2010-03-02 15:50:35.000000000 +0000
3 @@ -406,6 +406,20 @@
4 return(0);
7 +#if !defined(LIBXML_VERSION) || LIBXML_VERSION < 20704
8 +/*
9 + * xmlC14NMode:
10 + *
11 + * Predefined values for C14N modes
12 + *
13 + */
14 +typedef enum {
15 + XML_C14N_1_0 = 0, /* Origianal C14N 1.0 spec */
16 + XML_C14N_EXCLUSIVE_1_0 = 1, /* Exclusive C14N 1.0 spec */
17 + XML_C14N_1_1 = 2 /* C14N 1.1 spec */
18 +} xmlC14NMode;
19 +#endif
21 static int
22 xmlSecTransformC14NExecute(xmlSecTransformId id, xmlSecNodeSetPtr nodes, xmlChar** nsList,
23 xmlOutputBufferPtr buf) {