• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2014 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17//
18// To update:
19//
20
21//  git merge aosp/upstream-master
22//  mma -j
23//  # (Make any necessary Android.bp changes and test the new libxml2.)
24//  git push aosp HEAD:master  # Push directly, avoiding gerrit.
25//  git push aosp HEAD:refs/for/master  # Push to gerrit.
26//
27//  # Now commit any necessary Android.bp changes like normal:
28//  repo start post-sync .
29//  git commit -a
30//
31
32// This comes from the automake-generated Makefile.
33// We deliberately exclude nanoftp.c and nanohttp.c, the trio library, and zlib.
34// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS.  PLEASE
35//     CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE
36//     DEPENDING ON IT IN YOUR PROJECT. ***
37package {
38    default_applicable_licenses: ["external_libxml2_license"],
39}
40
41// Added automatically by a large-scale-change that took the approach of
42// 'apply every license found to every target'. While this makes sure we respect
43// every license restriction, it may not be entirely correct.
44//
45// e.g. GPL in an MIT project might only apply to the contrib/ directory.
46//
47// Please consider splitting the single license below into multiple licenses,
48// taking care not to lose any license_kind information, and overriding the
49// default license using the 'licenses: [...]' property on targets as needed.
50//
51// For unused files, consider creating a 'fileGroup' with "//visibility:private"
52// to attach the license to, and including a comment whether the files may be
53// used in the current project.
54// See: http://go/android-license-faq
55license {
56    name: "external_libxml2_license",
57    visibility: [":__subpackages__"],
58    license_kinds: [
59        "SPDX-license-identifier-CC-BY-SA",
60        "SPDX-license-identifier-GFDL", // by exception only
61        "SPDX-license-identifier-GPL",
62        "SPDX-license-identifier-GPL-2.0",
63        "SPDX-license-identifier-MIT",
64        "SPDX-license-identifier-W3C",
65    ],
66    license_text: [
67        "Copyright",
68    ],
69}
70
71cc_defaults {
72    name: "libxml2-defaults",
73    srcs: [
74        "SAX.c",
75        "entities.c",
76        "encoding.c",
77        "error.c",
78        "parserInternals.c",
79        "parser.c",
80        "tree.c",
81        "hash.c",
82        "list.c",
83        "xmlIO.c",
84        "xmlmemory.c",
85        "uri.c",
86        "valid.c",
87        "xlink.c",
88        "debugXML.c",
89        "xpath.c",
90        "xpointer.c",
91        "xinclude.c",
92        "catalog.c",
93        "globals.c",
94        "threads.c",
95        "c14n.c",
96        "xmlstring.c",
97        "buf.c",
98        "xmlregexp.c",
99        "xmlschemas.c",
100        "xmlschemastypes.c",
101        "xmlunicode.c",
102        "xmlreader.c",
103        "relaxng.c",
104        "dict.c",
105        "SAX2.c",
106        "xmlwriter.c",
107        "legacy.c",
108        "chvalid.c",
109        "pattern.c",
110        "xmlsave.c",
111        "xmlmodule.c",
112        "schematron.c",
113    ],
114    stl: "none",
115    export_include_dirs: ["include"],
116    cflags: [
117        "-Wall",
118        "-Werror",
119        "-Wno-error=ignored-attributes",
120        "-Wno-missing-field-initializers",
121        "-Wno-self-assign",
122        "-Wno-sign-compare",
123        "-Wno-tautological-pointer-compare",
124        "-Wno-unused-function",
125        "-Wno-unused-parameter",
126    ],
127    static: {
128        cflags: [
129            "-fvisibility=hidden",
130            "-DSTATIC_LIBXML=1",
131        ],
132    },
133}
134
135cc_library {
136    name: "libxml2",
137    defaults: ["libxml2-defaults"],
138    vendor_available: true,
139    product_available: true,
140    host_supported: true,
141    target: {
142        android: {
143            shared_libs: ["libandroidicu"],
144        },
145        host: {
146            shared_libs: [
147                "libicui18n",
148                "libicuuc",
149            ],
150            export_shared_lib_headers: [
151                "libicui18n",
152                "libicuuc",
153            ],
154        },
155        vendor: {
156            exclude_shared_libs: ["libandroidicu"],
157        },
158        product: {
159            exclude_shared_libs: ["libandroidicu"],
160        },
161    },
162    apex_available: [
163        "//apex_available:platform",
164        "com.android.nfcservices",
165        "com.android.uwb",
166        "com.android.virt",
167    ],
168    min_sdk_version: "apex_inherit",
169}
170
171cc_library_static {
172    name: "libxml2_ndk",
173    defaults: ["libxml2-defaults"],
174    sdk_version: "current",
175}
176
177cc_binary_host {
178    name: "xmllint",
179    srcs: ["xmllint.c"],
180    cflags: [
181        "-Wall",
182        "-Werror",
183    ],
184    shared_libs: ["libxml2"],
185}
186
187cc_binary_host {
188    name: "libxml2_genseed",
189    srcs: [
190        "fuzz/genSeed.c",
191        "fuzz/fuzz.c",
192    ],
193    cflags: [
194        "-Wno-unused-variable",
195    ],
196    shared_libs: ["libxml2"],
197}
198
199cc_defaults {
200    name: "libxml2-fuzz-defaults",
201    host_supported: true,
202    shared_libs: [
203        "libxml2",
204    ],
205    srcs: [
206        "fuzz/fuzz.c",
207    ],
208    fuzz_config: {
209        componentid: 87896,
210    },
211}
212
213cc_fuzz {
214    name: "libxml2_regexp_fuzzer",
215    defaults: ["libxml2-fuzz-defaults"],
216    srcs: [
217        "fuzz/regexp.c",
218    ],
219    dictionary: "fuzz/regexp.dict",
220}
221
222genrule {
223    name: "libxml2_schema_fuzz_corpus",
224    tools: ["libxml2_genseed"],
225    srcs: [
226        "test/schemas/*.xsd",
227        "test/schemas/*.inc",
228        "test/schemas/*.imp",
229    ],
230    // The genseed tool only writes under its current directory.
231    // We move outputs to the correct location after generation..
232    cmd: "mkdir -p seed/schema && " +
233        "$(location libxml2_genseed) schema $(locations test/schemas/*.xsd) && " +
234        "mkdir -p $(genDir)/fuzz/seed/schema && " +
235        "mv -f seed/schema/* $(genDir)/fuzz/seed/schema",
236    out: [
237        "fuzz/seed/schema/570702_0.xsd",
238        "fuzz/seed/schema/579746_0.xsd",
239        "fuzz/seed/schema/579746_1.xsd",
240        "fuzz/seed/schema/582887_0.xsd",
241        "fuzz/seed/schema/582887-attribute.xsd",
242        "fuzz/seed/schema/582887-common.xsd",
243        "fuzz/seed/schema/582887-element.xsd",
244        "fuzz/seed/schema/582906-1_0.xsd",
245        "fuzz/seed/schema/582906-1-common.xsd",
246        "fuzz/seed/schema/582906-1-prog1.xsd",
247        "fuzz/seed/schema/582906-1-prog2-include.xsd",
248        "fuzz/seed/schema/582906-1-prog2.xsd",
249        "fuzz/seed/schema/582906-2_0.xsd",
250        "fuzz/seed/schema/582906-2-common.xsd",
251        "fuzz/seed/schema/582906-2-prog1.xsd",
252        "fuzz/seed/schema/582906-2-prog2-include.xsd",
253        "fuzz/seed/schema/582906-2-prog2.xsd",
254        "fuzz/seed/schema/all_0.xsd",
255        "fuzz/seed/schema/all1_0.xsd",
256        "fuzz/seed/schema/all_1.xsd",
257        "fuzz/seed/schema/all_2.xsd",
258        "fuzz/seed/schema/allsg_0.xsd",
259        "fuzz/seed/schema/all.xsd",
260        "fuzz/seed/schema/annot-err_0.xsd",
261        "fuzz/seed/schema/any1_0.xsd",
262        "fuzz/seed/schema/any2_0.xsd",
263        "fuzz/seed/schema/any3_0.xsd",
264        "fuzz/seed/schema/any4_0.xsd",
265        "fuzz/seed/schema/any5_0.xsd",
266        "fuzz/seed/schema/any5_1.xsd",
267        "fuzz/seed/schema/any6_1.xsd",
268        "fuzz/seed/schema/any6_2.xsd",
269        "fuzz/seed/schema/any7_1.xsd",
270        "fuzz/seed/schema/any7_2.xsd",
271        "fuzz/seed/schema/any8_1.xsd",
272        "fuzz/seed/schema/anyAttr1_0.xsd",
273        "fuzz/seed/schema/anyAttr-derive1_0.xsd",
274        "fuzz/seed/schema/anyAttr-derive2_0.xsd",
275        "fuzz/seed/schema/anyAttr-derive-errors1_0.xsd",
276        "fuzz/seed/schema/anyAttr.importA.1_0.xsd",
277        "fuzz/seed/schema/anyAttr.importB.1_0.xsd",
278        "fuzz/seed/schema/anyAttr-processContents1_0.xsd",
279        "fuzz/seed/schema/anyAttr-processContents-err1_0.xsd",
280        "fuzz/seed/schema/attr0_0.xsd",
281        "fuzz/seed/schema/attruse_0_0.xsd",
282        "fuzz/seed/schema/bug141312_0.xsd",
283        "fuzz/seed/schema/bug141333_0.xsd",
284        "fuzz/seed/schema/bug141333.xsd",
285        "fuzz/seed/schema/bug143951_0.xsd",
286        "fuzz/seed/schema/bug145246_0.xsd",
287        "fuzz/seed/schema/bug152470_1.xsd",
288        "fuzz/seed/schema/bug167754_0.xsd",
289        "fuzz/seed/schema/bug303566_1.xsd",
290        "fuzz/seed/schema/bug306806_1.xsd",
291        "fuzz/seed/schema/bug309338_1.xsd",
292        "fuzz/seed/schema/bug310264_0.xsd",
293        "fuzz/seed/schema/bug312957_1.xsd",
294        "fuzz/seed/schema/bug313982_0.xsd",
295        "fuzz/seed/schema/bug321475_1.xsd",
296        "fuzz/seed/schema/bug322411_1.xsd",
297        "fuzz/seed/schema/bug323510_1.xsd",
298        "fuzz/seed/schema/bug455953_0.xsd",
299        "fuzz/seed/schema/changelog093_1.xsd",
300        "fuzz/seed/schema/choice_0.xsd",
301        "fuzz/seed/schema/choice_1.xsd",
302        "fuzz/seed/schema/choice_2.xsd",
303        "fuzz/seed/schema/complex-type-extension_0.xsd",
304        "fuzz/seed/schema/cos-ct-extends-1-3_0.xsd",
305        "fuzz/seed/schema/cos-st-restricts-1-2-err_0.xsd",
306        "fuzz/seed/schema/ct-sc-nobase_0.xsd",
307        "fuzz/seed/schema/date_0.xsd",
308        "fuzz/seed/schema/decimal-1_1.xsd",
309        "fuzz/seed/schema/decimal-1.xsd",
310        "fuzz/seed/schema/decimal-2_1.xsd",
311        "fuzz/seed/schema/decimal-3_1.xsd",
312        "fuzz/seed/schema/derivation-ok-extension_0.xsd",
313        "fuzz/seed/schema/derivation-ok-extension-err_0.xsd",
314        "fuzz/seed/schema/derivation-ok-restriction-2-1-1_0.xsd",
315        "fuzz/seed/schema/derivation-ok-restriction-4-1-err_0.xsd",
316        "fuzz/seed/schema/derivation-restriction-anyAttr_0.xsd",
317        "fuzz/seed/schema/derivation-restriction-anyType.xsd",
318        "fuzz/seed/schema/deter0_0.xsd",
319        "fuzz/seed/schema/dur_0.xsd",
320        "fuzz/seed/schema/elem0_0.xsd",
321        "fuzz/seed/schema/element-err_0.xsd",
322        "fuzz/seed/schema/element-minmax-err_0.xsd",
323        "fuzz/seed/schema/empty_0.xsd",
324        "fuzz/seed/schema/empty_1.xsd",
325        "fuzz/seed/schema/empty-value_1.xsd",
326        "fuzz/seed/schema/extension0_0.xsd",
327        "fuzz/seed/schema/extension1_0.xsd",
328        "fuzz/seed/schema/extension2_1.xsd",
329        "fuzz/seed/schema/facet-unionST-err1_0.xsd",
330        "fuzz/seed/schema/facet-whiteSpace_0.xsd",
331        "fuzz/seed/schema/group0_0.xsd",
332        "fuzz/seed/schema/hexbinary_0.xsd",
333        "fuzz/seed/schema/idc-keyref-err1_1.xsd",
334        "fuzz/seed/schema/import0_0.xsd",
335        "fuzz/seed/schema/import1_0.xsd",
336        "fuzz/seed/schema/import2_0.xsd",
337        "fuzz/seed/schema/import-455953.xsd",
338        "fuzz/seed/schema/include1_0.xsd",
339        "fuzz/seed/schema/include2_0.xsd",
340        "fuzz/seed/schema/include3_0.xsd",
341        "fuzz/seed/schema/issue40_0.xsd",
342        "fuzz/seed/schema/item_0.xsd",
343        "fuzz/seed/schema/item_1.xsd",
344        "fuzz/seed/schema/length1_0.xsd",
345        "fuzz/seed/schema/length2_0.xsd",
346        "fuzz/seed/schema/length3_0.xsd",
347        "fuzz/seed/schema/list0_0.xsd",
348        "fuzz/seed/schema/list0_1.xsd",
349        "fuzz/seed/schema/mixed0_0.xsd",
350        "fuzz/seed/schema/mixed1_0.xsd",
351        "fuzz/seed/schema/ns0_0.xsd",
352        "fuzz/seed/schema/ns0_1.xsd",
353        "fuzz/seed/schema/ns1_0.xsd",
354        "fuzz/seed/schema/ns2_0.xsd",
355        "fuzz/seed/schema/nvdcve_0.xsd",
356        "fuzz/seed/schema/po0_0.xsd",
357        "fuzz/seed/schema/po1_0.xsd",
358        "fuzz/seed/schema/poschargrp0_0.xsd",
359        "fuzz/seed/schema/regexp-char-ref_0.xsd",
360        "fuzz/seed/schema/regexp-char-ref_1.xsd",
361        "fuzz/seed/schema/restrict-CT-attr-ref_0.xsd",
362        "fuzz/seed/schema/restriction0_0.xsd",
363        "fuzz/seed/schema/restriction-attr1_0.xsd",
364        "fuzz/seed/schema/restriction-enum-1_1.xsd",
365        "fuzz/seed/schema/scc-no-xmlns_0.xsd",
366        "fuzz/seed/schema/scc-no-xsi_0.xsd",
367        "fuzz/seed/schema/seq0_0.xsd",
368        "fuzz/seed/schema/seq-dubl-elem1_0.xsd",
369        "fuzz/seed/schema/src-attribute1_0.xsd",
370        "fuzz/seed/schema/src-attribute2_0.xsd",
371        "fuzz/seed/schema/src-attribute3-1_0.xsd",
372        "fuzz/seed/schema/src-attribute3-2-form_0.xsd",
373        "fuzz/seed/schema/src-attribute3-2-st_0.xsd",
374        "fuzz/seed/schema/src-attribute3-2-type_0.xsd",
375        "fuzz/seed/schema/src-attribute4_0.xsd",
376        "fuzz/seed/schema/src-element1_0.xsd",
377        "fuzz/seed/schema/src-element2-1_0.xsd",
378        "fuzz/seed/schema/src-element2-2_0.xsd",
379        "fuzz/seed/schema/src-element3_0.xsd",
380        "fuzz/seed/schema/subst-group-1_0.xsd",
381        "fuzz/seed/schema/union_0_0.xsd",
382        "fuzz/seed/schema/union2_1.xsd",
383        "fuzz/seed/schema/vdv-complexTypes.xsd",
384        "fuzz/seed/schema/vdv-first0_0.xsd",
385        "fuzz/seed/schema/vdv-first1_0.xsd",
386        "fuzz/seed/schema/vdv-first2_0.xsd",
387        "fuzz/seed/schema/vdv-first3_0.xsd",
388        "fuzz/seed/schema/vdv-first4_0.xsd",
389        "fuzz/seed/schema/vdv-first5_0.xsd",
390        "fuzz/seed/schema/vdv-simpleTypes.xsd",
391        "fuzz/seed/schema/xml.xsd",
392        "fuzz/seed/schema/xsd-list-itemType_0.xsd",
393        "fuzz/seed/schema/xsd-simpleType-varieties_0.xsd",
394    ],
395}
396
397cc_fuzz {
398    name: "libxml2_schema_fuzzer",
399    defaults: ["libxml2-fuzz-defaults"],
400    srcs: [
401        "fuzz/schema.c",
402    ],
403    dictionary: "fuzz/schema.dict",
404    corpus: [":libxml2_schema_fuzz_corpus"],
405}
406
407cc_fuzz {
408    name: "libxml2_uri_fuzzer",
409    defaults: ["libxml2-fuzz-defaults"],
410    srcs: [
411        "fuzz/uri.c",
412    ],
413}
414
415genrule {
416    name: "libxml2_xml_fuzz_corpus",
417    tools: ["libxml2_genseed"],
418    srcs: [
419        "test/*",
420        "test/dtds/*.dtd",
421        "test/errors/rec_ext.ent",
422        "test/errors/*.xml",
423        "test/errors10/*.xml",
424        "test/namespaces/*",
425        "test/valid/*.xml",
426        "test/valid/*.dtd",
427        "test/valid/dtds/*",
428        "test/VC/*",
429        "test/VC/dtds/*.dtd",
430        "test/VCM/*",
431        "test/XInclude/docs/*",
432        "test/XInclude/ents/*",
433        "test/XInclude/without-reader/*",
434        "test/xmlid/*",
435    ],
436    // The genseed tool only writes under its current directory.
437    // We move outputs to the correct location after generation..
438    cmd: "mkdir -p seed/xml && " +
439        "$(location libxml2_genseed) xml $(in) &&" +
440        "mkdir -p $(genDir)/fuzz/seed/xml && " +
441        "mv seed/xml/* $(genDir)/fuzz/seed/xml",
442    out: [
443        "fuzz/seed/xml/127772.xml",
444        "fuzz/seed/xml/21.xml",
445        "fuzz/seed/xml/694228.xml",
446        "fuzz/seed/xml/737840.xml",
447        "fuzz/seed/xml/754946.xml",
448        "fuzz/seed/xml/754947.xml",
449        "fuzz/seed/xml/758588.xml",
450        "fuzz/seed/xml/759020.xml",
451        "fuzz/seed/xml/759398.xml",
452        "fuzz/seed/xml/759573-2.xml",
453        "fuzz/seed/xml/759573.xml",
454        "fuzz/seed/xml/759579.xml",
455        "fuzz/seed/xml/766956.xml",
456        "fuzz/seed/xml/781205.xml",
457        "fuzz/seed/xml/781333.xml",
458        "fuzz/seed/xml/781361.xml",
459        "fuzz/seed/xml/att1",
460        "fuzz/seed/xml/att10",
461        "fuzz/seed/xml/att11",
462        "fuzz/seed/xml/att2",
463        "fuzz/seed/xml/att3",
464        "fuzz/seed/xml/att4",
465        "fuzz/seed/xml/att5",
466        "fuzz/seed/xml/att6",
467        "fuzz/seed/xml/att7",
468        "fuzz/seed/xml/att8",
469        "fuzz/seed/xml/att9",
470        "fuzz/seed/xml/attr1.xml",
471        "fuzz/seed/xml/attr2.xml",
472        "fuzz/seed/xml/attr3.xml",
473        "fuzz/seed/xml/attr4.xml",
474        "fuzz/seed/xml/AttributeDefaultLegal",
475        "fuzz/seed/xml/AttributeNmtokens",
476        "fuzz/seed/xml/AttributeNmtokens.xml",
477        "fuzz/seed/xml/attrib.xml",
478        "fuzz/seed/xml/badcomment.xml",
479        "fuzz/seed/xml/bigentname.xml",
480        "fuzz/seed/xml/bigname2.xml",
481        "fuzz/seed/xml/bigname.xml",
482        "fuzz/seed/xml/cdata",
483        "fuzz/seed/xml/cdata2",
484        "fuzz/seed/xml/cdata-2-byte-UTF-8.xml",
485        "fuzz/seed/xml/cdata-3-byte-UTF-8.xml",
486        "fuzz/seed/xml/cdata-4-byte-UTF-8.xml",
487        "fuzz/seed/xml/cdata.xml",
488        "fuzz/seed/xml/charref1.xml",
489        "fuzz/seed/xml/comment1.xml",
490        "fuzz/seed/xml/comment2.xml",
491        "fuzz/seed/xml/comment3.xml",
492        "fuzz/seed/xml/comment4.xml",
493        "fuzz/seed/xml/comment5.xml",
494        "fuzz/seed/xml/comment6.xml",
495        "fuzz/seed/xml/comment.xml",
496        "fuzz/seed/xml/cond_sect1.xml",
497        "fuzz/seed/xml/cond_sect2.xml",
498        "fuzz/seed/xml/content1.xml",
499        "fuzz/seed/xml/dav1",
500        "fuzz/seed/xml/dav10",
501        "fuzz/seed/xml/dav11",
502        "fuzz/seed/xml/dav12",
503        "fuzz/seed/xml/dav13",
504        "fuzz/seed/xml/dav15",
505        "fuzz/seed/xml/dav16",
506        "fuzz/seed/xml/dav17",
507        "fuzz/seed/xml/dav18",
508        "fuzz/seed/xml/dav19",
509        "fuzz/seed/xml/dav2",
510        "fuzz/seed/xml/dav3",
511        "fuzz/seed/xml/dav4",
512        "fuzz/seed/xml/dav5",
513        "fuzz/seed/xml/dav6",
514        "fuzz/seed/xml/dav7",
515        "fuzz/seed/xml/dav8",
516        "fuzz/seed/xml/dav9",
517        "fuzz/seed/xml/defattr2.xml",
518        "fuzz/seed/xml/defattr.xml",
519        "fuzz/seed/xml/dia1",
520        "fuzz/seed/xml/dia2",
521        "fuzz/seed/xml/dia.xml",
522        "fuzz/seed/xml/docids.xml",
523        "fuzz/seed/xml/dtd1",
524        "fuzz/seed/xml/dtd10",
525        "fuzz/seed/xml/dtd11",
526        "fuzz/seed/xml/dtd12",
527        "fuzz/seed/xml/dtd13",
528        "fuzz/seed/xml/dtd2",
529        "fuzz/seed/xml/dtd3",
530        "fuzz/seed/xml/dtd4",
531        "fuzz/seed/xml/dtd5",
532        "fuzz/seed/xml/dtd6",
533        "fuzz/seed/xml/dtd7",
534        "fuzz/seed/xml/dtd8",
535        "fuzz/seed/xml/dtd9",
536        "fuzz/seed/xml/DuplicateType",
537        "fuzz/seed/xml/ebcdic_566012.xml",
538        "fuzz/seed/xml/ElementValid",
539        "fuzz/seed/xml/ElementValid2",
540        "fuzz/seed/xml/ElementValid3",
541        "fuzz/seed/xml/ElementValid4",
542        "fuzz/seed/xml/ElementValid5",
543        "fuzz/seed/xml/ElementValid6",
544        "fuzz/seed/xml/ElementValid7",
545        "fuzz/seed/xml/ElementValid8",
546        "fuzz/seed/xml/emptycdata.xml",
547        "fuzz/seed/xml/ent1",
548        "fuzz/seed/xml/ent10",
549        "fuzz/seed/xml/ent11",
550        "fuzz/seed/xml/ent12",
551        "fuzz/seed/xml/ent13",
552        "fuzz/seed/xml/ent2",
553        "fuzz/seed/xml/ent3",
554        "fuzz/seed/xml/ent4",
555        "fuzz/seed/xml/ent5",
556        "fuzz/seed/xml/ent6",
557        "fuzz/seed/xml/ent7",
558        "fuzz/seed/xml/ent_738805.xml",
559        "fuzz/seed/xml/ent8",
560        "fuzz/seed/xml/ent9",
561        "fuzz/seed/xml/Enumeration",
562        "fuzz/seed/xml/err_0.xml",
563        "fuzz/seed/xml/err_10.xml",
564        "fuzz/seed/xml/err_11.xml",
565        "fuzz/seed/xml/err_1.xml",
566        "fuzz/seed/xml/err_2.xml",
567        "fuzz/seed/xml/err_3.xml",
568        "fuzz/seed/xml/err_4.xml",
569        "fuzz/seed/xml/err_5.xml",
570        "fuzz/seed/xml/err_6.xml",
571        "fuzz/seed/xml/err_7.xml",
572        "fuzz/seed/xml/err_8.xml",
573        "fuzz/seed/xml/err_9.xml",
574        "fuzz/seed/xml/eve.xml",
575        "fuzz/seed/xml/extparsedent.xml",
576        "fuzz/seed/xml/fallback2.xml",
577        "fuzz/seed/xml/fallback3.xml",
578        "fuzz/seed/xml/fallback4.xml",
579        "fuzz/seed/xml/fallback5.xml",
580        "fuzz/seed/xml/fallback6.xml",
581        "fuzz/seed/xml/fallback7.xml",
582        "fuzz/seed/xml/fallback.xml",
583        "fuzz/seed/xml/icu_parse_test.xml",
584        "fuzz/seed/xml/id1.xml",
585        "fuzz/seed/xml/id2.xml",
586        "fuzz/seed/xml/id3.xml",
587        "fuzz/seed/xml/id_err1.xml",
588        "fuzz/seed/xml/id_err2.xml",
589        "fuzz/seed/xml/id_tst1.xml",
590        "fuzz/seed/xml/id_tst2.xml",
591        "fuzz/seed/xml/id_tst3.xml",
592        "fuzz/seed/xml/id_tst4.xml",
593        "fuzz/seed/xml/include.xml",
594        "fuzz/seed/xml/index.xml",
595        "fuzz/seed/xml/intsubset2.xml",
596        "fuzz/seed/xml/intsubset.xml",
597        "fuzz/seed/xml/isolat1",
598        "fuzz/seed/xml/isolat2",
599        "fuzz/seed/xml/isolat3",
600        "fuzz/seed/xml/issue424-1.xml",
601        "fuzz/seed/xml/issue424-2.xml",
602        "fuzz/seed/xml/japancrlf.xml",
603        "fuzz/seed/xml/mixed_ns.xml",
604        "fuzz/seed/xml/name2.xml",
605        "fuzz/seed/xml/name.xml",
606        "fuzz/seed/xml/nodes2.xml",
607        "fuzz/seed/xml/nodes3.xml",
608        "fuzz/seed/xml/nodes.xml",
609        "fuzz/seed/xml/notes.xml",
610        "fuzz/seed/xml/ns",
611        "fuzz/seed/xml/NS1",
612        "fuzz/seed/xml/ns1.xml",
613        "fuzz/seed/xml/ns2",
614        "fuzz/seed/xml/NS2",
615        "fuzz/seed/xml/ns2.xml",
616        "fuzz/seed/xml/ns3",
617        "fuzz/seed/xml/NS3",
618        "fuzz/seed/xml/ns4",
619        "fuzz/seed/xml/ns5",
620        "fuzz/seed/xml/ns6",
621        "fuzz/seed/xml/ns7",
622        "fuzz/seed/xml/nsclean.xml",
623        "fuzz/seed/xml/ns.xml",
624        "fuzz/seed/xml/objednavka.xml",
625        "fuzz/seed/xml/OneID",
626        "fuzz/seed/xml/OneID2",
627        "fuzz/seed/xml/OneID3",
628        "fuzz/seed/xml/p3p",
629        "fuzz/seed/xml/PENesting",
630        "fuzz/seed/xml/PENesting2",
631        "fuzz/seed/xml/pi2.xml",
632        "fuzz/seed/xml/pi.xml",
633        "fuzz/seed/xml/rdf1",
634        "fuzz/seed/xml/rdf2",
635        "fuzz/seed/xml/rec_ext_ent.xml",
636        "fuzz/seed/xml/recursive.xml",
637        "fuzz/seed/xml/REC-xml-19980210.xml",
638        "fuzz/seed/xml/rss.xml",
639        "fuzz/seed/xml/slashdot16.xml",
640        "fuzz/seed/xml/slashdot.rdf",
641        "fuzz/seed/xml/slashdot.xml",
642        "fuzz/seed/xml/svg1",
643        "fuzz/seed/xml/svg2",
644        "fuzz/seed/xml/svg3",
645        "fuzz/seed/xml/t10.xml",
646        "fuzz/seed/xml/t11.xml",
647        "fuzz/seed/xml/t4a.xml",
648        "fuzz/seed/xml/t4.xml",
649        "fuzz/seed/xml/t6.xml",
650        "fuzz/seed/xml/t8a.xml",
651        "fuzz/seed/xml/t8.xml",
652        "fuzz/seed/xml/t9a.xml",
653        "fuzz/seed/xml/t9.xml",
654        "fuzz/seed/xml/title.xml",
655        "fuzz/seed/xml/tstblanks.xml",
656        "fuzz/seed/xml/tstencoding.xml",
657        "fuzz/seed/xml/txtinclude.xml",
658        "fuzz/seed/xml/UniqueElementTypeDeclaration",
659        "fuzz/seed/xml/UniqueElementTypeDeclaration2",
660        "fuzz/seed/xml/utf16bebom.xml",
661        "fuzz/seed/xml/utf16bom.xml",
662        "fuzz/seed/xml/UTF16Entity.xml",
663        "fuzz/seed/xml/utf16lebom.xml",
664        "fuzz/seed/xml/utf8bom.xml",
665        "fuzz/seed/xml/v10.xml",
666        "fuzz/seed/xml/v11.xml",
667        "fuzz/seed/xml/v12.xml",
668        "fuzz/seed/xml/v13.xml",
669        "fuzz/seed/xml/v14.xml",
670        "fuzz/seed/xml/v15.xml",
671        "fuzz/seed/xml/v16.xml",
672        "fuzz/seed/xml/v17.xml",
673        "fuzz/seed/xml/v18.xml",
674        "fuzz/seed/xml/v19.xml",
675        "fuzz/seed/xml/v1.xml",
676        "fuzz/seed/xml/v20.xml",
677        "fuzz/seed/xml/v21.xml",
678        "fuzz/seed/xml/v22.xml",
679        "fuzz/seed/xml/v23.xml",
680        "fuzz/seed/xml/v24.xml",
681        "fuzz/seed/xml/v2.xml",
682        "fuzz/seed/xml/v3.xml",
683        "fuzz/seed/xml/v4.xml",
684        "fuzz/seed/xml/v5.xml",
685        "fuzz/seed/xml/v6.xml",
686        "fuzz/seed/xml/v7.xml",
687        "fuzz/seed/xml/v8.xml",
688        "fuzz/seed/xml/v9.xml",
689        "fuzz/seed/xml/wap.xml",
690        "fuzz/seed/xml/winblanks.xml",
691        "fuzz/seed/xml/wml.xml",
692        "fuzz/seed/xml/xhtml1",
693        "fuzz/seed/xml/xhtmlcomp",
694        "fuzz/seed/xml/xlink.xml",
695        "fuzz/seed/xml/xml1",
696        "fuzz/seed/xml/xml2",
697    ],
698}
699
700cc_fuzz {
701    name: "libxml2_xml_fuzzer",
702    defaults: ["libxml2-fuzz-defaults"],
703    srcs: [
704        "fuzz/xml.c",
705    ],
706    dictionary: "fuzz/xml.dict",
707    corpus: [":libxml2_xml_fuzz_corpus"],
708}
709
710genrule {
711    name: "libxml2_xpath_fuzz_corpus",
712    tools: ["libxml2_genseed"],
713    srcs: [
714        "test/XPath/*/*",
715    ],
716    // The genseed tool only writes under its current directory.
717    // We move outputs to the correct location after generation..
718    cmd: "inputs=( $(in) ) && " +
719        "inputDir=$$(dirname $$(dirname $${inputs})) && " +
720        "mkdir -p seed/xpath && " +
721        "$(location libxml2_genseed) xpath $${inputDir} && " +
722        "mkdir -p $(genDir)/fuzz/seed/xpath && " +
723        "mv seed/xpath/* $(genDir)/fuzz/seed/xpath",
724    out: [
725        "fuzz/seed/xpath/chapters-1",
726        "fuzz/seed/xpath/chapters-10",
727        "fuzz/seed/xpath/chapters-11",
728        "fuzz/seed/xpath/chapters-12",
729        "fuzz/seed/xpath/chapters-13",
730        "fuzz/seed/xpath/chapters-14",
731        "fuzz/seed/xpath/chapters-15",
732        "fuzz/seed/xpath/chapters-16",
733        "fuzz/seed/xpath/chapters-17",
734        "fuzz/seed/xpath/chapters-18",
735        "fuzz/seed/xpath/chapters-19",
736        "fuzz/seed/xpath/chapters-2",
737        "fuzz/seed/xpath/chapters-20",
738        "fuzz/seed/xpath/chapters-21",
739        "fuzz/seed/xpath/chapters-22",
740        "fuzz/seed/xpath/chapters-23",
741        "fuzz/seed/xpath/chapters-24",
742        "fuzz/seed/xpath/chapters-25",
743        "fuzz/seed/xpath/chapters-26",
744        "fuzz/seed/xpath/chapters-27",
745        "fuzz/seed/xpath/chapters-28",
746        "fuzz/seed/xpath/chapters-29",
747        "fuzz/seed/xpath/chapters-3",
748        "fuzz/seed/xpath/chapters-30",
749        "fuzz/seed/xpath/chapters-31",
750        "fuzz/seed/xpath/chapters-32",
751        "fuzz/seed/xpath/chapters-33",
752        "fuzz/seed/xpath/chapters-34",
753        "fuzz/seed/xpath/chapters-35",
754        "fuzz/seed/xpath/chapters-36",
755        "fuzz/seed/xpath/chapters-37",
756        "fuzz/seed/xpath/chapters-38",
757        "fuzz/seed/xpath/chapters-39",
758        "fuzz/seed/xpath/chapters-4",
759        "fuzz/seed/xpath/chapters-5",
760        "fuzz/seed/xpath/chapters-6",
761        "fuzz/seed/xpath/chapters-7",
762        "fuzz/seed/xpath/chapters-8",
763        "fuzz/seed/xpath/chapters-9",
764        "fuzz/seed/xpath/expr-1",
765        "fuzz/seed/xpath/expr-10",
766        "fuzz/seed/xpath/expr-100",
767        "fuzz/seed/xpath/expr-101",
768        "fuzz/seed/xpath/expr-102",
769        "fuzz/seed/xpath/expr-103",
770        "fuzz/seed/xpath/expr-104",
771        "fuzz/seed/xpath/expr-105",
772        "fuzz/seed/xpath/expr-106",
773        "fuzz/seed/xpath/expr-107",
774        "fuzz/seed/xpath/expr-108",
775        "fuzz/seed/xpath/expr-109",
776        "fuzz/seed/xpath/expr-11",
777        "fuzz/seed/xpath/expr-110",
778        "fuzz/seed/xpath/expr-111",
779        "fuzz/seed/xpath/expr-112",
780        "fuzz/seed/xpath/expr-113",
781        "fuzz/seed/xpath/expr-114",
782        "fuzz/seed/xpath/expr-115",
783        "fuzz/seed/xpath/expr-116",
784        "fuzz/seed/xpath/expr-117",
785        "fuzz/seed/xpath/expr-118",
786        "fuzz/seed/xpath/expr-119",
787        "fuzz/seed/xpath/expr-12",
788        "fuzz/seed/xpath/expr-120",
789        "fuzz/seed/xpath/expr-121",
790        "fuzz/seed/xpath/expr-122",
791        "fuzz/seed/xpath/expr-123",
792        "fuzz/seed/xpath/expr-124",
793        "fuzz/seed/xpath/expr-125",
794        "fuzz/seed/xpath/expr-126",
795        "fuzz/seed/xpath/expr-127",
796        "fuzz/seed/xpath/expr-128",
797        "fuzz/seed/xpath/expr-129",
798        "fuzz/seed/xpath/expr-13",
799        "fuzz/seed/xpath/expr-130",
800        "fuzz/seed/xpath/expr-131",
801        "fuzz/seed/xpath/expr-132",
802        "fuzz/seed/xpath/expr-133",
803        "fuzz/seed/xpath/expr-134",
804        "fuzz/seed/xpath/expr-135",
805        "fuzz/seed/xpath/expr-136",
806        "fuzz/seed/xpath/expr-137",
807        "fuzz/seed/xpath/expr-138",
808        "fuzz/seed/xpath/expr-139",
809        "fuzz/seed/xpath/expr-14",
810        "fuzz/seed/xpath/expr-140",
811        "fuzz/seed/xpath/expr-141",
812        "fuzz/seed/xpath/expr-142",
813        "fuzz/seed/xpath/expr-143",
814        "fuzz/seed/xpath/expr-144",
815        "fuzz/seed/xpath/expr-145",
816        "fuzz/seed/xpath/expr-146",
817        "fuzz/seed/xpath/expr-147",
818        "fuzz/seed/xpath/expr-148",
819        "fuzz/seed/xpath/expr-149",
820        "fuzz/seed/xpath/expr-15",
821        "fuzz/seed/xpath/expr-150",
822        "fuzz/seed/xpath/expr-151",
823        "fuzz/seed/xpath/expr-152",
824        "fuzz/seed/xpath/expr-153",
825        "fuzz/seed/xpath/expr-154",
826        "fuzz/seed/xpath/expr-155",
827        "fuzz/seed/xpath/expr-156",
828        "fuzz/seed/xpath/expr-157",
829        "fuzz/seed/xpath/expr-158",
830        "fuzz/seed/xpath/expr-159",
831        "fuzz/seed/xpath/expr-16",
832        "fuzz/seed/xpath/expr-160",
833        "fuzz/seed/xpath/expr-161",
834        "fuzz/seed/xpath/expr-162",
835        "fuzz/seed/xpath/expr-163",
836        "fuzz/seed/xpath/expr-164",
837        "fuzz/seed/xpath/expr-165",
838        "fuzz/seed/xpath/expr-166",
839        "fuzz/seed/xpath/expr-167",
840        "fuzz/seed/xpath/expr-168",
841        "fuzz/seed/xpath/expr-169",
842        "fuzz/seed/xpath/expr-17",
843        "fuzz/seed/xpath/expr-170",
844        "fuzz/seed/xpath/expr-171",
845        "fuzz/seed/xpath/expr-172",
846        "fuzz/seed/xpath/expr-173",
847        "fuzz/seed/xpath/expr-174",
848        "fuzz/seed/xpath/expr-175",
849        "fuzz/seed/xpath/expr-176",
850        "fuzz/seed/xpath/expr-177",
851        "fuzz/seed/xpath/expr-178",
852        "fuzz/seed/xpath/expr-179",
853        "fuzz/seed/xpath/expr-18",
854        "fuzz/seed/xpath/expr-180",
855        "fuzz/seed/xpath/expr-181",
856        "fuzz/seed/xpath/expr-182",
857        "fuzz/seed/xpath/expr-183",
858        "fuzz/seed/xpath/expr-184",
859        "fuzz/seed/xpath/expr-185",
860        "fuzz/seed/xpath/expr-186",
861        "fuzz/seed/xpath/expr-187",
862        "fuzz/seed/xpath/expr-188",
863        "fuzz/seed/xpath/expr-189",
864        "fuzz/seed/xpath/expr-19",
865        "fuzz/seed/xpath/expr-190",
866        "fuzz/seed/xpath/expr-191",
867        "fuzz/seed/xpath/expr-192",
868        "fuzz/seed/xpath/expr-193",
869        "fuzz/seed/xpath/expr-194",
870        "fuzz/seed/xpath/expr-195",
871        "fuzz/seed/xpath/expr-196",
872        "fuzz/seed/xpath/expr-197",
873        "fuzz/seed/xpath/expr-198",
874        "fuzz/seed/xpath/expr-199",
875        "fuzz/seed/xpath/expr-2",
876        "fuzz/seed/xpath/expr-20",
877        "fuzz/seed/xpath/expr-200",
878        "fuzz/seed/xpath/expr-201",
879        "fuzz/seed/xpath/expr-202",
880        "fuzz/seed/xpath/expr-203",
881        "fuzz/seed/xpath/expr-204",
882        "fuzz/seed/xpath/expr-205",
883        "fuzz/seed/xpath/expr-206",
884        "fuzz/seed/xpath/expr-207",
885        "fuzz/seed/xpath/expr-208",
886        "fuzz/seed/xpath/expr-209",
887        "fuzz/seed/xpath/expr-21",
888        "fuzz/seed/xpath/expr-210",
889        "fuzz/seed/xpath/expr-211",
890        "fuzz/seed/xpath/expr-212",
891        "fuzz/seed/xpath/expr-213",
892        "fuzz/seed/xpath/expr-214",
893        "fuzz/seed/xpath/expr-215",
894        "fuzz/seed/xpath/expr-216",
895        "fuzz/seed/xpath/expr-217",
896        "fuzz/seed/xpath/expr-218",
897        "fuzz/seed/xpath/expr-219",
898        "fuzz/seed/xpath/expr-22",
899        "fuzz/seed/xpath/expr-220",
900        "fuzz/seed/xpath/expr-221",
901        "fuzz/seed/xpath/expr-222",
902        "fuzz/seed/xpath/expr-223",
903        "fuzz/seed/xpath/expr-224",
904        "fuzz/seed/xpath/expr-225",
905        "fuzz/seed/xpath/expr-226",
906        "fuzz/seed/xpath/expr-227",
907        "fuzz/seed/xpath/expr-228",
908        "fuzz/seed/xpath/expr-229",
909        "fuzz/seed/xpath/expr-23",
910        "fuzz/seed/xpath/expr-230",
911        "fuzz/seed/xpath/expr-231",
912        "fuzz/seed/xpath/expr-232",
913        "fuzz/seed/xpath/expr-24",
914        "fuzz/seed/xpath/expr-25",
915        "fuzz/seed/xpath/expr-26",
916        "fuzz/seed/xpath/expr-27",
917        "fuzz/seed/xpath/expr-28",
918        "fuzz/seed/xpath/expr-29",
919        "fuzz/seed/xpath/expr-3",
920        "fuzz/seed/xpath/expr-30",
921        "fuzz/seed/xpath/expr-31",
922        "fuzz/seed/xpath/expr-32",
923        "fuzz/seed/xpath/expr-33",
924        "fuzz/seed/xpath/expr-34",
925        "fuzz/seed/xpath/expr-35",
926        "fuzz/seed/xpath/expr-36",
927        "fuzz/seed/xpath/expr-37",
928        "fuzz/seed/xpath/expr-38",
929        "fuzz/seed/xpath/expr-39",
930        "fuzz/seed/xpath/expr-4",
931        "fuzz/seed/xpath/expr-40",
932        "fuzz/seed/xpath/expr-41",
933        "fuzz/seed/xpath/expr-42",
934        "fuzz/seed/xpath/expr-43",
935        "fuzz/seed/xpath/expr-44",
936        "fuzz/seed/xpath/expr-45",
937        "fuzz/seed/xpath/expr-46",
938        "fuzz/seed/xpath/expr-47",
939        "fuzz/seed/xpath/expr-48",
940        "fuzz/seed/xpath/expr-49",
941        "fuzz/seed/xpath/expr-5",
942        "fuzz/seed/xpath/expr-50",
943        "fuzz/seed/xpath/expr-51",
944        "fuzz/seed/xpath/expr-52",
945        "fuzz/seed/xpath/expr-53",
946        "fuzz/seed/xpath/expr-54",
947        "fuzz/seed/xpath/expr-55",
948        "fuzz/seed/xpath/expr-56",
949        "fuzz/seed/xpath/expr-57",
950        "fuzz/seed/xpath/expr-58",
951        "fuzz/seed/xpath/expr-59",
952        "fuzz/seed/xpath/expr-6",
953        "fuzz/seed/xpath/expr-60",
954        "fuzz/seed/xpath/expr-61",
955        "fuzz/seed/xpath/expr-62",
956        "fuzz/seed/xpath/expr-63",
957        "fuzz/seed/xpath/expr-64",
958        "fuzz/seed/xpath/expr-65",
959        "fuzz/seed/xpath/expr-66",
960        "fuzz/seed/xpath/expr-67",
961        "fuzz/seed/xpath/expr-68",
962        "fuzz/seed/xpath/expr-69",
963        "fuzz/seed/xpath/expr-7",
964        "fuzz/seed/xpath/expr-70",
965        "fuzz/seed/xpath/expr-71",
966        "fuzz/seed/xpath/expr-72",
967        "fuzz/seed/xpath/expr-73",
968        "fuzz/seed/xpath/expr-74",
969        "fuzz/seed/xpath/expr-75",
970        "fuzz/seed/xpath/expr-76",
971        "fuzz/seed/xpath/expr-77",
972        "fuzz/seed/xpath/expr-78",
973        "fuzz/seed/xpath/expr-79",
974        "fuzz/seed/xpath/expr-8",
975        "fuzz/seed/xpath/expr-80",
976        "fuzz/seed/xpath/expr-81",
977        "fuzz/seed/xpath/expr-82",
978        "fuzz/seed/xpath/expr-83",
979        "fuzz/seed/xpath/expr-84",
980        "fuzz/seed/xpath/expr-85",
981        "fuzz/seed/xpath/expr-86",
982        "fuzz/seed/xpath/expr-87",
983        "fuzz/seed/xpath/expr-88",
984        "fuzz/seed/xpath/expr-89",
985        "fuzz/seed/xpath/expr-9",
986        "fuzz/seed/xpath/expr-90",
987        "fuzz/seed/xpath/expr-91",
988        "fuzz/seed/xpath/expr-92",
989        "fuzz/seed/xpath/expr-93",
990        "fuzz/seed/xpath/expr-94",
991        "fuzz/seed/xpath/expr-95",
992        "fuzz/seed/xpath/expr-96",
993        "fuzz/seed/xpath/expr-97",
994        "fuzz/seed/xpath/expr-98",
995        "fuzz/seed/xpath/expr-99",
996        "fuzz/seed/xpath/id-1",
997        "fuzz/seed/xpath/id-2",
998        "fuzz/seed/xpath/id-3",
999        "fuzz/seed/xpath/lang-1",
1000        "fuzz/seed/xpath/lang-2",
1001        "fuzz/seed/xpath/lang-3",
1002        "fuzz/seed/xpath/lang-4",
1003        "fuzz/seed/xpath/lang-5",
1004        "fuzz/seed/xpath/mixed-1",
1005        "fuzz/seed/xpath/mixed-2",
1006        "fuzz/seed/xpath/mixed-3",
1007        "fuzz/seed/xpath/mixed-4",
1008        "fuzz/seed/xpath/mixed-5",
1009        "fuzz/seed/xpath/mixed-6",
1010        "fuzz/seed/xpath/mixed-7",
1011        "fuzz/seed/xpath/nodes-1",
1012        "fuzz/seed/xpath/nodes-2",
1013        "fuzz/seed/xpath/nodes-3",
1014        "fuzz/seed/xpath/nodes-4",
1015        "fuzz/seed/xpath/nodes-5",
1016        "fuzz/seed/xpath/ns-1",
1017        "fuzz/seed/xpath/ns-2",
1018        "fuzz/seed/xpath/ns-3",
1019        "fuzz/seed/xpath/ns-4",
1020        "fuzz/seed/xpath/ns-5",
1021        "fuzz/seed/xpath/simple-1",
1022        "fuzz/seed/xpath/simple-10",
1023        "fuzz/seed/xpath/simple-11",
1024        "fuzz/seed/xpath/simple-12",
1025        "fuzz/seed/xpath/simple-13",
1026        "fuzz/seed/xpath/simple-14",
1027        "fuzz/seed/xpath/simple-15",
1028        "fuzz/seed/xpath/simple-16",
1029        "fuzz/seed/xpath/simple-17",
1030        "fuzz/seed/xpath/simple-18",
1031        "fuzz/seed/xpath/simple-19",
1032        "fuzz/seed/xpath/simple-2",
1033        "fuzz/seed/xpath/simple-20",
1034        "fuzz/seed/xpath/simple-21",
1035        "fuzz/seed/xpath/simple-22",
1036        "fuzz/seed/xpath/simple-23",
1037        "fuzz/seed/xpath/simple-24",
1038        "fuzz/seed/xpath/simple-25",
1039        "fuzz/seed/xpath/simple-26",
1040        "fuzz/seed/xpath/simple-3",
1041        "fuzz/seed/xpath/simple-4",
1042        "fuzz/seed/xpath/simple-5",
1043        "fuzz/seed/xpath/simple-6",
1044        "fuzz/seed/xpath/simple-7",
1045        "fuzz/seed/xpath/simple-8",
1046        "fuzz/seed/xpath/simple-9",
1047        "fuzz/seed/xpath/str-1",
1048        "fuzz/seed/xpath/usr1-1",
1049        "fuzz/seed/xpath/vid-1",
1050        "fuzz/seed/xpath/vid-10",
1051        "fuzz/seed/xpath/vid-11",
1052        "fuzz/seed/xpath/vid-12",
1053        "fuzz/seed/xpath/vid-13",
1054        "fuzz/seed/xpath/vid-14",
1055        "fuzz/seed/xpath/vid-2",
1056        "fuzz/seed/xpath/vid-3",
1057        "fuzz/seed/xpath/vid-4",
1058        "fuzz/seed/xpath/vid-5",
1059        "fuzz/seed/xpath/vid-6",
1060        "fuzz/seed/xpath/vid-7",
1061        "fuzz/seed/xpath/vid-8",
1062        "fuzz/seed/xpath/vid-9",
1063    ],
1064}
1065
1066cc_fuzz {
1067    name: "libxml2_xpath_fuzzer",
1068    defaults: ["libxml2-fuzz-defaults"],
1069    srcs: [
1070        "fuzz/xpath.c",
1071    ],
1072    dictionary: "fuzz/xpath.dict",
1073    corpus: [":libxml2_xpath_fuzz_corpus"],
1074}
1075