1. 12 Oct, 2020 1 commit
  2. 21 Sep, 2020 1 commit
  3. 16 Aug, 2020 1 commit
  4. 09 Aug, 2020 2 commits
  5. 04 Aug, 2020 1 commit
  6. 19 Jul, 2020 1 commit
  7. 24 Jun, 2020 1 commit
    • Martin Vidner's avatar
      Fix rebuilding docs, by hiding __attribute__((...)) behind a macro. · 43a8836c
      Martin Vidner authored and Nick Wellnhofer's avatar Nick Wellnhofer committed
      When enabled via `./configure --enable-rebuild-docs`,
      `make -C doc libxml2-api.xml` will invoke apibuild.py
      to rebuild libxml2-api.xml from the sources.
      But the code added in
      9fa3200c made it error out with
      
      ```
      Parsing ../parser.c
      Parse Error: parsing type : expecting a name
      ('Got token ', ('sep', '('))
      ('Last token: ', ('sep', '('))
      ('Token queue: ', [('name', 'destructor'), ('sep', ')'), ('sep', ')')])
      ('Line 14689 end: ', '')
      ```
      43a8836c
  8. 10 Jun, 2020 1 commit
    • Nick Wellnhofer's avatar
      Never expand parameter entities in text declaration · a28f7d87
      Nick Wellnhofer authored
      When parsing the text declaration of external DTDs or entities, make
      sure that parameter entities are not expanded. This also fixes a memory
      leak in certain error cases.
      
      The change to xmlSkipBlankChars assumes that the parser state is
      maintained correctly when parsing external DTDs or parameter entities,
      and might expose bugs in the code that were hidden previously.
      
      Found by OSS-Fuzz.
      a28f7d87
  9. 30 May, 2020 2 commits
  10. 04 May, 2020 1 commit
  11. 08 Mar, 2020 1 commit
  12. 11 Feb, 2020 3 commits
    • Nick Wellnhofer's avatar
      Merge code paths loading external entities · 1a3e584a
      Nick Wellnhofer authored
      Merge xmlParseCtxtExternalEntity into xmlParseExternalEntityPrivate.
      1a3e584a
    • Nick Wellnhofer's avatar
      Fix copying of entities in xmlParseReference · f9ea1a24
      Nick Wellnhofer authored
      Before, reader mode would end up in a branch that didn't handle
      entities with multiple children and failed to update ent->last, so the
      hack copying the "extra" reader data wouldn't trigger. Consequently,
      some empty nodes in entities are correctly detected now in the test
      suite. (The detection of empty nodes in entities is still buggy,
      though.)
      f9ea1a24
    • Kevin Puetz's avatar
      Fix memory leak when shared libxml.dll is unloaded · c7c526d6
      Kevin Puetz authored and Nick Wellnhofer's avatar Nick Wellnhofer committed
      When a multiple modules (process/plugins) all link to libxml2.dll
      they will in fact share a single loaded instance of it.
      It is unsafe for any of them to call xmlCleanupParser,
      as this would deinitialize the shared state and break others that might
      still have ongoing use.
      
      However, on windows atexit is per-module (rather process-wide), so if used
      *within* libxml2 it is possible to register a clean up when all users
      are done and libxml2.dll is about to actually unload.
      
      This allows multiple plugins to link with and share libxml2 without
      a premature cleanup if one is unloaded, while still cleaning up if *all*
      such callers are themselves unloaded.
      c7c526d6
  13. 02 Jan, 2020 2 commits
  14. 29 Oct, 2019 1 commit
  15. 23 Oct, 2019 1 commit
  16. 30 Sep, 2019 3 commits
  17. 23 Sep, 2019 1 commit
  18. 20 Sep, 2019 2 commits
    • Nick Wellnhofer's avatar
      a28bc751
    • Nick Wellnhofer's avatar
      Don't read external entities or XIncludes from stdin · e91cbcf6
      Nick Wellnhofer authored
      The file input callbacks try to read from stdin if "-" is passed as URL.
      This should never be done when loading indirect resources like external
      entities or XIncludes. Unfortunately, the stdin substitution happens
      deep inside the IO code, so we simply replace "-" with "./-" in specific
      locations.
      
      This issue also affects other users of the library like libxslt.
      Ideally, stdin should only be substituted on explicit request. But more
      intrusive changes could break existing code.
      
      Closes #90 and #102.
      e91cbcf6
  19. 26 Aug, 2019 1 commit
  20. 08 Jul, 2019 2 commits
  21. 27 Jun, 2019 1 commit
  22. 20 May, 2019 1 commit
  23. 14 May, 2019 1 commit
  24. 07 Jan, 2019 1 commit
  25. 06 Jan, 2019 1 commit
  26. 11 Sep, 2018 1 commit
  27. 23 Jan, 2018 1 commit
    • Nick Wellnhofer's avatar
      Fix xmlParserEntityCheck · 707ad080
      Nick Wellnhofer authored
      A previous commit removed the check for XML_ERR_ENTITY_LOOP which is
      required to abort early in case of excessive entity recursion.
      707ad080
  28. 22 Jan, 2018 2 commits
  29. 08 Jan, 2018 1 commit
  30. 08 Dec, 2017 1 commit