leethomason / tinyxml2

TinyXML2 is a simple, small, efficient, C++ XML parser that can be easily integrated into other programs.
zlib License
5.09k stars 1.83k forks source link

Crash due to assert commentPool.CurrentAllocs() == _commentPool.Untracked() #999

Open smuellerDD opened 2 months ago

smuellerDD commented 2 months ago

When using Encfs (https://github.com/vgough/encfs), the patch https://github.com/leethomason/tinyxml2/commit/eb3ab0df5d184b84eb283c0806f6abee71e3409b causes the following assert:

../tinyxml2.cpp:2260: void tinyxml2::XMLDocument::Clear(): Zusicherung »_commentPool.CurrentAllocs() == _commentPool.Untracked()« nicht erfüllt.

I.e. the assert in tinyxml2::XMLDocument::Clear() is not fulfilled. When I use tinyxml with the code one git commit earlier, it works without the issue.