DO NOT MERGE: Heap buffer overflow in xmlAddID

Patch from ddkilzer@apple.com
See https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=598
and https://bugzilla.gnome.org/show_bug.cgi?id=780228

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