Commit Graph

67 Commits

Author SHA1 Message Date
Matej Kenda
aab4058bae
Hide zlib and expat libs from the user of Poco libraries (replaces #4579) (#4724)
* foundation: Remove unused ucp.h

Nothing use this and it is not even included in Visual Studio project
files. Remove it so it will not confuse any more.

* foundation: Hide zlib from user

Hide zlib completly from user. This way we do not need to publish zlib.h
or zconfig.h.

As we now have two different pointer initalizing in constructor I choose
to use unique pointers so it is more obvious those are safe. I also
choose to use make_unique which default initalize z_stream_t. This makes
code more readable as we do not need to specifie every field of
z_stream_t. It really should not matter much if we initialize couple
field for nothing. If does we should add comment about that. Still
keeping _buffer without inializing as it is quite big.

* xml: Hide expat and ParserEngine from user

Hide expat completly from user. This way we do not need to publish
expat.h or expat_external.h.

I move also headers to orignal locations so diff is smaller compared to
original.

* chore(Foundation): Compression level constants

---------

Co-authored-by: Kari Argillander <kari.argillander@fidelix.com>
2024-10-04 09:50:39 +02:00
Günter Obiltschnig
3b4a8ea6e7 fix(XML): fuzzing stack overflow (#4629). Limit maximum XML element depth. 2024-09-26 09:03:31 +02:00
Matej Kenda
9a7da6d6fd update(expat): version 2.6.3 2024-09-25 16:44:03 +02:00
Günter Obiltschnig
77eb14eebd fix(XML): Upgrade bundled libexpat to 2.6.2 #4496 2024-03-22 08:34:55 +01:00
Günter Obiltschnig
4ab7194e75 chore(XML): #4477: Upgrade bundled libexpat to 2.6.1 2024-03-05 16:09:15 +01:00
Günter Obiltschnig
0c18194465 fix(XML): #4443: Upgrade libexpat to 2.6.0 2024-02-06 21:46:26 +01:00
Günter Obiltschnig
7ffdcf97d4 fix: make headers parseable by CppParser/PocoDoc 2024-02-06 10:00:48 +01:00
Kari Argillander
bf3c519183
Fix some issues found with clang-tidy (#4353)
* directoryiterator: Fix missing inline

Add missing inline to inline function.

This was found with clang-tidy check:  misc-definitions-in-headers

* Convert deprecated throw() to noexcept

throw() has been deprecated in standar in C++17. It has been removed in
C++20. Code still compiles but let's just define these at those should
be.

These where found with clang-tidy check: modernize-use-noexcept

* Fix unnecessary copy initializations

Clang-tidy did find these with check:

  performance-unnecessary-copy-initialization

* Fix some strings not references

Looks like these are just missing reference marks.

---------

Co-authored-by: Kari Argillander <kari.argillander@fidelix.com>
2023-12-17 16:55:30 +01:00
tuduongquyet
af69d61ff5
Adding API Poco::XML insertAfterNP() (#4061) 2023-11-26 19:49:50 +01:00
Günter Obiltschnig
dac733d055 #3849: Upgrade bundled libexpat to 2.5.0 [fixes CVE] 2022-10-31 13:26:08 +01:00
Günter Obiltschnig
fcf173fd49 #3805: Upgrade expat to 2.4.9 2022-10-24 09:21:36 +02:00
John Vandenberg
0e6e16645c
Remove trailing whitespace (#3668) 2022-07-07 04:18:20 -05:00
Aleksandar Fabijanic
168f1eb6e2
As of C++11, std::swap is noexcept. #2386 (#3645)
* As of C++11, std::swap is noexcept. #2386

* fix(Any): remove throw on swap

* fix(Any): As of C++11, std::swap is noexcept. #2386

* fix(Any): make size const #2386

* fix(SimpleRowFormatter): clang won't compile noexcept #2386

* a couple of arm fixes

* fix(Any): As of C++11, std::swap is noexcept. #2386

* fix(AnyTest): local() for POCO_NO_SOO# 2386

* test(RSACipher): RSA encryption without private key #2367

* chore(RSACipherTest): delete ciphers #2367
2022-06-28 12:14:36 -05:00
Günter Obiltschnig
a0403928b3 #3538: Upgrade bundled expat to 2.4.7 2022-03-09 08:32:03 +01:00
Günter Obiltschnig
5239c4f023 #3530: Upgrade bundled expat to 2.4.6 2022-02-20 18:53:57 +01:00
Günter Obiltschnig
02abb70601 #3527: Upgrade bundled expat to 2.4.5 2022-02-19 09:29:43 +01:00
Günter Obiltschnig
82ef12b875 #3506: Upgrade bundled expat to 2.4.4 2022-02-07 15:26:31 +01:00
Günter Obiltschnig
73ee047a37 #3215: XML parser returns item from different element in a array 2021-06-15 08:52:58 +02:00
Günter Obiltschnig
cd6422fde3 expose million laughs attack protection implemented by Expat 2.4 2021-05-23 21:23:28 +02:00
Günter Obiltschnig
d95d9bd4a4 upgrade expat to 2.4.1 (trivial) 2021-05-23 19:13:43 +02:00
Günter Obiltschnig
fb5618a757 #3279: update bundled expat to 2.4.0 2021-05-23 11:49:35 +02:00
Günter Obiltschnig
1bf40a0cd2 merge some changes from develop branch; modernize and clean-up code; remove support for compiling without POCO_WIN32_UTF8 2020-01-09 10:08:09 +01:00
Günter Obiltschnig
44c7d97d2e move freestanding friend function definitions out of class 2019-11-17 09:33:09 +01:00
Günter Obiltschnig
7d394c382f fixed GH #2784: Upgrade bundled expat XML parser library to release 2.2.8 2019-09-16 09:16:41 +02:00
Günter Obiltschnig
4c3351ea05 fixed GH #2737: Bundles vulnerable copy of Expat — please upgrade to Expat 2.2.7 2019-07-01 07:15:21 +02:00
Günter Obiltschnig
78c2ef8b85 style fixes 2019-06-22 19:05:49 +02:00
Scott Talbert
1724e8ba53 Backport patches (#2006)
* Guard SQLITE_BUSY_SNAPSHOT which is not available in older SQLite releases

When building POCO unbundled with older versions of SQLite (such as on RHEL7)
SQLITE_BUSY_SNAPSHOT is not defined, so #ifdef guard it.

* Some of the samples need to link with PocoJSON

* Build parallelization issues #1730

* Fix building XMLStreamParser with unbundled expat
2017-11-20 09:31:20 -06:00
Guenter Obiltschnig
a0ecfe0b28 merge XMLStreamParser from develop 2017-10-31 13:09:59 +01:00
Günter Obiltschnig
04e7e04d4d Remove \$Id`$ headers 2017-09-09 11:14:06 +02:00
Günter Obiltschnig
1bea9edecb fix formatting 2017-08-11 19:26:12 +02:00
Günter Obiltschnig
e679ebe419 fixed GH #1826: XPath query error 2017-08-11 19:13:02 +02:00
Günter Obiltschnig
af06d43b55 fix comment typos 2017-08-10 13:00:43 +02:00
Günter Obiltschnig
f37520b30b added random salt to NamePool hash 2017-08-10 12:18:18 +02:00
Günter Obiltschnig
a176c8d1f2 upgrade bundled expat to 2.2.3 2017-08-10 10:10:32 +02:00
Guenter Obiltschnig
c562469eb3 upgrade bundled expat to 2.2.1; apply POCO-specific changes 2017-06-21 15:15:55 +02:00
Guenter Obiltschnig
6b47a37fdf doc clarifications 2016-10-07 11:05:36 +02:00
Guenter Obiltschnig
e453ad144a add optional name pool size argument to DOMParser constructor 2016-10-07 10:53:14 +02:00
Guenter Obiltschnig
ad99e73a60 increased default XML name pool size, added Document constructor taking name pool size as argument 2016-10-07 10:43:34 +02:00
Guenter Obiltschnig
8b21d3a9de updated bundled expat to 2.2.0 2016-07-03 10:28:11 +02:00
Guenter Obiltschnig
4236d130fa upgraded bundled expat to 2.1.1 2016-03-19 08:10:53 +01:00
Guenter Obiltschnig
539eba72d6 GH #713: Improved support for producing Canonical XML in XMLWriter 2016-02-28 11:20:02 +01:00
Alex Fabijanic
ba0d9830eb GH #463: XML does not compile with XML_UNICODE_WCHAR_T 2014-06-03 22:50:07 -05:00
Roger Meier
b0581433a7 LICENSE: add info about SPDX-License-Identifier usage and use it
fix: remove executable flag and change back to 100644 (was 100755)

Signed-off-by: Roger Meier <r.meier@siemens.com>
2014-05-14 08:38:09 +02:00
Roger Meier
628a06f718 LICENSE: add info about SPDX-License-Identifier usage and use it
Signed-off-by: Roger Meier <roger@bufferoverflow.ch>
2014-05-04 21:02:42 +02:00
Guenter Obiltschnig
47f6ba60ab XMLWriter: removed unnecessary apostrophe escaping (&apos) 2014-01-24 16:31:10 +01:00
Guenter Obiltschnig
94352e18c1 upgraded expat to release 2.1.0 2013-04-09 09:12:48 +02:00
aleks-f
76a7e2e716 GH56: Need a way to disable *_API macros with GCC
GH #56: Need a way to disable *_API macros with GCC
2013-01-13 10:31:21 -06:00
aleks-f
ef9cda6666 GH #26: Cannot compile on gcc
GH #26: Cannot compile on gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 using
compiler flag pedantic
2012-12-12 23:02:20 -06:00
Guenter Obiltschnig
80c45c859d - added Poco::XML::XMLWriter::depth() member function.
- added Poco::XML::XMLWriter::uniquePrefix() and Poco::XML::XMLWriter::isNamespaceMapped().
- Poco::FileChannel now supports a new rotateOnOpen property (true/false) which can be used
  to force rotation of the log file when it's opened.
- fixed a bug in Poco::XML::XMLWriter::emptyElement(): need to pop namespace context
2012-11-10 11:49:39 +01:00
Aleksandar Fabijanic
5a639074d9 change EOL to 'native' 2012-04-29 18:52:25 +00:00