tinyxml2 icon indicating copy to clipboard operation
tinyxml2 copied to clipboard

TinyXML2 is a simple, small, efficient, C++ XML parser that can be easily integrated into other programs.

Results 154 tinyxml2 issues
Sort by recently updated
recently updated
newest added

How about adding constexpr, noexcept in functions when appropriate?

Although it does not causes building error, compiler warns those operators have not function definition. How about deleting them?

Although it is very comfortable to including TinyXML2 (just adding .h and cpp, and it's over), Some users wanted to have a modularized version of TinyXML2. There is simple hack...

I have bumbled my way along with using this library and everything has worked great. Now I have a need to store a XMLElement from the document for processing later...

### 🐞 Bug Report: `XMLNode::Value()` does not check for null `_value`, leading to crash #### 🔤 Summary The `XMLNode::Value()` method in `tinyxml2.cpp` does not perform a null-check on the `_value`...

``` auto child = std::get(file->Reader)->FirstChildElement()->FirstChildElement(); ``` Why do I need to do FirstChildElement()->FirstChildElement(); to get the root node of the file? Isn't this kinda silly?

A null pointer dereference occurs when calling XMLElement::SetText() using fuzzed or malformed input passed through XMLDocument::Parse(). The bug causes a crash due to strlen() being invoked on a nullptr inside...

### 🐞 Bug Report: Global Buffer Overflow in `tinyxml2::XMLPrinter::PushText(char const*, bool)` #### 🔤 Summary A **global buffer overflow** vulnerability was identified in the function `tinyxml2::XMLPrinter::PushText(const char*, bool)` located at line...

### 🐞 Bug Report: Stack Buffer Underflow in `tinyxml2::XMLPrinter::PrepareForNewNode(bool)` #### 🔤 Summary A **stack buffer underflow** vulnerability was detected in the function `tinyxml2::XMLPrinter::PrepareForNewNode(bool)` located in `tinyxml2.cpp` at line 2739. The...

As the title says. Almost same as https://github.com/leethomason/tinyxml2/pull/988, but fix undefined behavior in xmltest. https://github.com/leethomason/tinyxml2/pull/988 can be closed since this fix is a generalization of it.