Add an XML_PARSE_NOXXE flag to block all entities loading even local

For https://bugzilla.gnome.org/show_bug.cgi?id=772726

* include/libxml/parser.h: Add a new parser flag XML_PARSE_NOXXE
* elfgcchack.h, xmlIO.h, xmlIO.c: associated loading routine
* include/libxml/xmlerror.h: new error raised
* xmllint.c: adds --noxxe flag to activate the option
7 files changed
tree: 10c77da4ad72b8f0f95b5cc4a65a5bb563ebd4c6
  1. .gitignore
  2. AUTHORS
  3. ChangeLog
  4. Copyright
  5. DOCBparser.c
  6. HACKING
  7. HTMLparser.c
  8. HTMLtree.c
  9. INSTALL.libxml2
  10. MAINTAINERS
  11. Makefile.am
  12. Makefile.tests
  13. Makefile.win
  14. NEWS
  15. README
  16. README.cvs-commits
  17. README.tests
  18. SAX.c
  19. SAX2.c
  20. TODO
  21. TODO_SCHEMAS
  22. VxWorks/
  23. acinclude.m4
  24. autogen.sh
  25. bakefile/
  26. buf.c
  27. buf.h
  28. build_glob.py
  29. c14n.c
  30. catalog.c
  31. check-relaxng-test-suite.py
  32. check-relaxng-test-suite2.py
  33. check-xinclude-test-suite.py
  34. check-xml-test-suite.py
  35. check-xsddata-test-suite.py
  36. chvalid.c
  37. chvalid.def
  38. configure.ac
  39. dbgen.pl
  40. dbgenattr.pl
  41. debugXML.c
  42. dict.c
  43. doc/
  44. elfgcchack.h
  45. enc.h
  46. encoding.c
  47. entities.c
  48. error.c
  49. example/
  50. genChRanges.py
  51. genUnicode.py
  52. gentest.py
  53. global.data
  54. globals.c
  55. hash.c
  56. include/
  57. legacy.c
  58. libxml-2.0-uninstalled.pc.in
  59. libxml-2.0.pc.in
  60. libxml.3
  61. libxml.h
  62. libxml.m4
  63. libxml.spec.in
  64. libxml2-config.cmake.in
  65. libxml2.doap
  66. libxml2.syms
  67. list.c
  68. macos/
  69. nanoftp.c
  70. nanohttp.c
  71. optim/
  72. os400/
  73. parser.c
  74. parserInternals.c
  75. pattern.c
  76. python/
  77. regressions.py
  78. regressions.xml
  79. relaxng.c
  80. result/
  81. rngparser.c
  82. runsuite.c
  83. runtest.c
  84. runxmlconf.c
  85. save.h
  86. schematron.c
  87. test/
  88. testAutomata.c
  89. testC14N.c
  90. testHTML.c
  91. testModule.c
  92. testOOM.c
  93. testOOMlib.c
  94. testOOMlib.h
  95. testReader.c
  96. testRegexp.c
  97. testRelax.c
  98. testSAX.c
  99. testSchemas.c
  100. testThreads.c
  101. testThreadsWin32.c
  102. testURI.c
  103. testXPath.c
  104. testapi.c
  105. testchar.c
  106. testdict.c
  107. testdso.c
  108. testlimits.c
  109. testrecurse.c
  110. threads.c
  111. timsort.h
  112. tree.c
  113. trio.c
  114. trio.h
  115. triodef.h
  116. trionan.c
  117. trionan.h
  118. triop.h
  119. triostr.c
  120. triostr.h
  121. uri.c
  122. valid.c
  123. vms/
  124. win32/
  125. xinclude.c
  126. xlink.c
  127. xml2-config.1
  128. xml2-config.in
  129. xml2Conf.sh.in
  130. xmlIO.c
  131. xmlcatalog.c
  132. xmllint.c
  133. xmlmemory.c
  134. xmlmodule.c
  135. xmlreader.c
  136. xmlregexp.c
  137. xmlsave.c
  138. xmlschemas.c
  139. xmlschemastypes.c
  140. xmlstring.c
  141. xmlunicode.c
  142. xmlwriter.c
  143. xpath.c
  144. xpointer.c
  145. xstc/
  146. xzlib.c
  147. xzlib.h