Light-weight, simple and fast XML parser for C++ with XPath support
Find a file
Arseny Kapoulkine 38edf255ae Work around -fsanitize=integer issues
Integer sanitizer is flagging unsigned integer overflow in several
functions in pugixml; unsigned integer overflow is well defined but it
may not necessarily be intended.

Apart from hash functions, both string_to_integer and integer_to_string
use unsigned overflow - string_to_integer uses it to perform
two-complement negation so that the bulk of the operation can run using
unsigned integers. This makes it possible to simplify overflow checking.
Similarly integer_to_string negates the number before generating a
decimal representation, but negating is impossible without unsigned
overflow or special-casing certain integer limits.

For now just silence the integer overflow using a special attribute;
also move unsigned overflow into string_to_integer from get_value_* so
that we have fewer functions marked with the attribute.

Fixes #133.
2017-04-03 23:35:24 -07:00
contrib contrib: Fix foreach.hpp for Boost 1.56.0 2014-09-27 04:49:27 +00:00
docs Update copyright year to 2017 2017-01-26 20:12:06 -08:00
scripts Update copyright year to 2017 2017-01-26 20:12:06 -08:00
src Work around -fsanitize=integer issues 2017-04-03 23:35:24 -07:00
tests Move libFuzzer build to Makefile 2017-04-03 21:09:37 -07:00
.codecov.yml Add .codecov.yml to disable PR comments 2016-08-08 08:23:42 -07:00
.gitignore Adding PKG-CONFIG support 2016-09-12 21:44:20 +02:00
.travis.yml Add NO_EXCEPTIONS build to Travis 2017-01-29 21:52:42 -08:00
appveyor.yml Switch to regular AppVeyor image 2016-06-10 21:18:13 -07:00
CMakeLists.txt Added target_include_directories() to properly export include directories (#130) 2017-01-17 09:30:01 -08:00
Makefile Move libFuzzer build to Makefile 2017-04-03 21:09:37 -07:00
README.md Update copyright year to 2017 2017-01-26 20:12:06 -08:00
readme.txt Update copyright year to 2017 2017-01-26 20:12:06 -08:00

pugixml Build Status Build status codecov.io

pugixml is a C++ XML processing library, which consists of a DOM-like interface with rich traversal/modification capabilities, an extremely fast XML parser which constructs the DOM tree from an XML file/buffer, and an XPath 1.0 implementation for complex data-driven tree queries. Full Unicode support is also available, with Unicode interface variants and conversions between different Unicode encodings (which happen automatically during parsing/saving).

pugixml is used by a lot of projects, both open-source and proprietary, for performance and easy-to-use interface.

Documentation

Documentation for the current release of pugixml is available on-line as two separate documents:

Youre advised to start with the quick-start guide; however, many important library features are either not described in it at all or only mentioned briefly; if you require more information you should read the complete manual.

License

This library is available to anybody free of charge, under the terms of MIT License:

Copyright (c) 2006-2017 Arseny Kapoulkine

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.