Commit Graph

91 Commits

Author SHA1 Message Date
Matej Kenda
fe27933a12
update(expat): version 2.6.4 (#4760) (#4767) 2024-11-13 18:59:32 +01:00
Matej Kenda
a1efeaa72d
GitHub runner ubuntu 24.04 and resolve some issues (#4727) 2024-10-09 21:53:49 +02:00
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
ce9c08a2d8 chore(XML): modernization: use nullptr instead of 0 2024-09-26 09:14:44 +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
d5a5ebc2d7 enh: #3890: Get rid of SingletonHolder 2024-01-30 09:56:27 +01:00
Günter Obiltschnig
33638df51e enh: #4216: use std::string literals 2024-01-30 09:35:35 +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
df20425463 #3518: Expat version check in #defines incorrect 2022-02-19 10:40:46 +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
35c03912c5 #3335: XML error when build 1.11.0 2021-11-05 12:45:33 +01:00
Günter Obiltschnig
22eb76d3ae #3302: MSVC: Poco hides warnings (C4996) for the C++14 attribute [[deprecated]] 2021-06-17 18:20:29 +02: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
65d7eaccbf fix #include for use with Poco::XML 2021-05-23 12:54:39 +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
3771a53ae1 formatting 2021-04-11 16:01:12 +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
d658cc25e7 another include fix for xmltok.c 2019-09-16 15:32:58 +02:00
Günter Obiltschnig
29e91e8ffe make xmltok.c compile on Windows 2019-09-16 09:28:37 +02: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
Guenter Obiltschnig
d172273a75 remove remaining $Id$ tags from file headers 2017-10-31 16:01:51 +01: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
e679ebe419 fixed GH #1826: XPath query error 2017-08-11 19:13:02 +02:00
Günter Obiltschnig
fdf3d1729a fixed GH #1813: xmlparse.cpp doesn't compile in WinCE (poco 1.7.8p3)
updated changelog
bumped version to 1.7.8p4
2017-08-10 16:55:05 +02:00
Günter Obiltschnig
07a00c0da1 removed pointless statements causing VC++ warnings 2017-08-10 12:18:44 +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
Günter Obiltschnig
d18e400a88 fix for Windows 2017-06-21 15:42:48 +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
cefab1f993 use #ifdef POCO_LONG_IS_64_BIT instead of if (sizeof(... to avoid warnings 2016-10-10 14:14:50 +02:00
Guenter Obiltschnig
62241b9411 fixed GH #1422 2016-10-07 20:46:12 +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
9cefa0d888 handle unlikely situation that XML_ParserCreate() fails 2016-09-26 18:08:36 +02:00