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