Transporter
ecaa7887a1
Add SHA3 and BLAKE2 hashing algorithm
2017-04-01 12:41:14 +02:00
Francis ANDRE
a823c68693
Merge branch 'develop' of https://github.com/pocoproject/poco into develop
2017-03-31 13:30:53 +02:00
Francis ANDRE
ad5e674e1f
restore adding pcre_utf8_objects when build unbundled poco
2017-03-29 17:36:33 +02:00
Francis ANDRE
42ae8f60b8
Add a new constant to avoid including <windows.h> on Linux
2017-03-23 17:14:57 +01:00
André Draszik
54777d7f18
fp: support environments without hardware floating point
...
| cd <build>/Foundation && \
| mipsel-poky-linux-musl-g++ -DFoundation_EXPORTS -DHAVE_PTHREAD_SETAFFINITY_NP -DHAVE_THREE_PARAM_SCHED_SETAFFINITY \
| -DPCRE_STATIC -DPOCO_HAVE_FD_EPOLL -DPOCO_NO_AUTOMATIC_LIBS -DPOCO_OS_FAMILY_UNIX -DPOCO_UNBUNDLED \
| -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -D_XOPEN_SOURCE=500 \
| -I<sysroot>/usr/include -I<poco>/Foundation/include -I<poco>/Foundation/src \
| -mel -mabi=32 -msoft-float -march=mips32r2 -mno-mips16 -minterlink-compressed -mtune=24kec -mdsp \
| --sysroot=<sysroot> -O2 -pipe -g -feliminate-unused-debug-types \
| -fstack-protector-strong -pie -fpie -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security \
| -fvisibility-inlines-hidden -mel -mabi=32 -msoft-float -march=mips32r2 -mno-mips16 -minterlink-compressed \
| -mtune=24kec -mdsp --sysroot=<sysroot> -O2 -g -DNDEBUG -fPIC \
| -o CMakeFiles/Foundation.dir/src/ArchiveStrategy.cpp.o \
| -c <poco>/Foundation/src/ArchiveStrategy.cpp
| In file included from <poco>/Foundation/include/Poco/FPEnvironment.h:33:0,
| from <poco>/Foundation/include/Poco/NumericString.h:25,
| from <poco>/Foundation/include/Poco/NumberFormatter.h:24,
| from <poco>/Foundation/include/Poco/ArchiveStrategy.h:27,
| from <poco>/Foundation/src/ArchiveStrategy.cpp:17:
| <poco>/Foundation/include/Poco/FPEnvironment_C99.h:36:30: error: 'FE_DOWNWARD' was not declared in this scope
| FP_ROUND_DOWNWARD_IMPL = FE_DOWNWARD,
| ^~~~~~~~~~~
| <poco>/Foundation/include/Poco/FPEnvironment_C99.h:37:30: error: 'FE_UPWARD' was not declared in this scope
| FP_ROUND_UPWARD_IMPL = FE_UPWARD,
| ^~~~~~~~~
| <poco>/Foundation/include/Poco/FPEnvironment_C99.h:39:30: error: 'FE_TOWARDZERO' was not declared in this scope
| FP_ROUND_TOWARDZERO_IMPL = FE_TOWARDZERO
| ^~~~~~~~~~~~~
| <poco>/Foundation/include/Poco/FPEnvironment_C99.h:43:28: error: 'FE_DIVBYZERO' was not declared in this scope
| FP_DIVIDE_BY_ZERO_IMPL = FE_DIVBYZERO,
| ^~~~~~~~~~~~
| <poco>/Foundation/include/Poco/FPEnvironment_C99.h:44:28: error: 'FE_INEXACT' was not declared in this scope
| FP_INEXACT_IMPL = FE_INEXACT,
| ^~~~~~~~~~
| <poco>/Foundation/include/Poco/FPEnvironment_C99.h:45:28: error: 'FE_OVERFLOW' was not declared in this scope
| FP_OVERFLOW_IMPL = FE_OVERFLOW,
| ^~~~~~~~~~~
| <poco>/Foundation/include/Poco/FPEnvironment_C99.h:46:28: error: 'FE_UNDERFLOW' was not declared in this scope
| FP_UNDERFLOW_IMPL = FE_UNDERFLOW,
| ^~~~~~~~~~~~
| <poco>/Foundation/include/Poco/FPEnvironment_C99.h:47:28: error: 'FE_INVALID' was not declared in this scope
| FP_INVALID_IMPL = FE_INVALID
| ^~~~~~~~~~
The reason is that some (notably FPU-less) architectures,
including mips*-nf, don't define/implement some of the
floating point constants, even though fenv.h is
available.
The key point is:
A fully standards conforming fenv.h does not have to
define any FE_* macros, and if it does define them,
then it defines macros only for the FP exceptions it
actually supports.
See similar issue in boost:
https://svn.boost.org/trac/boost/ticket/11756
2017-03-22 11:10:28 +00:00
Transporter
6c4182c9b3
Update make files and Visual Studio projects with SHA2
2017-03-21 17:20:05 +01:00
Transporter
bbce66e2de
Bugfix for gcc and add copyright text
2017-03-21 16:35:16 +01:00
Transporter
43cff0fb14
Fix diggest buffer reset in SHA2 and add test cases
2017-03-21 15:13:02 +01:00
Transporter
2f66ecba38
Add license information to SHA2Engine
2017-03-21 14:14:00 +01:00
Transporter
a721b1cb47
Add SHA2 algorithm
2017-03-21 11:06:18 +01:00
Günter Obiltschnig
f12dc91e97
Merge pull request #1620 from RobertAcksel/develop
...
change access from private to protected for shared ptr members
2017-03-17 10:27:51 +01:00
FrancisANDRE
eab801f407
Fix corner square comparison (utf16Path.size() >= MAX_PATH - 12) instead
...
of (utf16Path.size() > MAX_PATH - 12). Detected by
FileTest.testLongPath()
2017-03-12 14:00:21 +01:00
Robert Acksel
8fd909a016
-change access from private to protected for shared ptr members. it allows to extend shared ptr to work together with derived classes. in other words it allows to extend shared ptr
2017-03-06 16:34:03 +01:00
Rudolf-Walter Kiss-Szakács
ed819feb83
Fix XDG Base Dir Spec implementation and remove tempHome.
2017-02-23 08:23:41 +02:00
Guenter Obiltschnig
915b9ed890
fixed GH #1604 : pcre_internal.h HAVE_STDINT_H usage changed from 1.7.7 to 1.7.8 breaking the build on older MSVC
2017-02-22 14:11:57 +01:00
Guenter Obiltschnig
f453dd145c
added Visual Studio 2017 project files
2017-02-20 16:46:44 +01:00
Guenter Obiltschnig
c32e683b6c
fixed GH #1260 : URI encoding
2017-02-17 09:24:16 +01:00
Guenter Obiltschnig
ed22e4e586
merged strerror_r fix from poco-1.7.8
2017-02-14 15:03:48 +01:00
FrancisANDRE
fbf7c4dc46
Add reinterpret_cast for the arguments of the pcre_fullinfo function.
...
Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
2017-02-12 15:35:50 +01:00
Günter Obiltschnig
d1af113f0c
fixed a warning
2017-02-11 19:36:50 +01:00
Guenter Obiltschnig
d35677790f
GH #1538 : update double-conversion to v1.1.5
2017-02-11 12:49:39 +01:00
Guenter Obiltschnig
6e90523982
fixed GH #1549 : Latin2Encoding and 0xFF
2017-02-11 12:28:08 +01:00
Guenter Obiltschnig
76ab7c65a6
GH #1586 : Upgrade bundled PCRE to 8.40
2017-02-11 12:14:02 +01:00
Guenter Obiltschnig
8557dc4469
fixed GH #1581 : Cannot find 'pcre.h' when using POCO_UNBUNDLED, a non-system PCRE, and CMake
...
Conflicts:
Foundation/include/Poco/RegularExpression.h
Foundation/src/RegularExpression.cpp
2017-02-11 12:13:29 +01:00
Günter Obiltschnig
0fefd7d03a
fixed GH #1523 : Long path names under Windows
2017-02-02 20:54:59 +01:00
Günter Obiltschnig
d5ce48138c
fixed VS2015 solution files for Foundation (missing TestApp and TestLibrary)
2017-02-02 20:22:09 +01:00
Guenter Obiltschnig
a39e374aec
fixed GH #1573 : Poco::File::createDirectories() should not throw Poco::FileExistsException
2017-01-29 12:47:39 +01:00
Guenter Obiltschnig
4149062e7e
upgraded bundled zlib to 1.2.11
2017-01-25 10:18:21 +01:00
Pascal Bach
e8537a2188
make zlib build correctly again with newer Windows CE versions
2017-01-17 14:29:42 +01:00
Guenter Obiltschnig
28de783c96
only use <atomic> header if C++11 support is available
2017-01-13 15:42:46 +01:00
Günter Obiltschnig
f216c798bf
Merge pull request #1535 from mkrivos/develop
...
Zlib 1.2.10
2017-01-12 20:25:31 +01:00
Guenter Obiltschnig
f42f17dd65
fixed GH #1536 : Building with OS X 10.12 SDK and 10.7 deployment target without libc++ fails
2017-01-10 17:08:18 +01:00
Jochen Sprickerhof
fc2a3398a5
Use null as device file as console might not be there
2017-01-04 23:21:53 +01:00
Marian Krivos
f55e88c3f2
Update to zlib 1.2.10
2017-01-03 13:55:07 +01:00
Guenter Obiltschnig
760286f86f
remove debug output
2016-12-29 15:02:26 +01:00
Guenter Obiltschnig
2914d077c4
GH #865 : FileChannel compress fails leaving empty .gz files
2016-12-29 14:20:19 +01:00
Guenter Obiltschnig
13b062c786
fixed warnings and inconsistencies
2016-12-06 22:11:54 +01:00
Guenter Obiltschnig
955f409177
On Apple platforms, use std::atomic with MacOS 10.12 or iOS 10 SDK.
...
Conflicts:
Foundation/include/Poco/AtomicCounter.h
2016-12-06 21:52:58 +01:00
Guenter Obiltschnig
feedbbbea5
more fixes related to GH #1453
...
Conflicts:
Foundation/include/Poco/AtomicCounter.h
2016-12-06 21:50:21 +01:00
Guenter Obiltschnig
710845f023
fixed GH #1453 : _clock_gettime Symbol not found on Mac 10.11 [do not use clock_gettime() on Apple platforms, even if _POSIX_TIMERS indicates it's available]
2016-12-06 18:22:34 +01:00
Guenter Obiltschnig
9c436860b3
ObjectPool: gracefully handle case if push_back() throws
2016-12-06 00:03:39 +01:00
vm2mv
780430487b
Foundation: fixed exceptions handling in zlib-output-streams constructors
2016-11-22 13:55:36 +01:00
Tomaz Beltram
8265d1b28e
GH #1488 : fixed ObjectPool size handling
2016-11-16 14:17:17 +01:00
Guenter Obiltschnig
efdeadef2a
fixed GH #990 : Potential race condition in on Windows
2016-11-03 14:49:25 +01:00
Alexey Milovidov
95590d620e
Fixed error with Poco::UTF8Encoding::isLegal (wrong result on illegal sequence "\xED\x20\xA8").
2016-10-29 20:27:28 +03:00
Guenter Obiltschnig
8293f93f7a
use std::unique_ptr instead of std::auto_ptr with C++11 or newer compilers to avoid std::auto_ptr deprecation warnings
2016-10-14 12:01:25 +02:00
Guenter Obiltschnig
8888d3daae
added POCO_NO_SHARED_LIBRARY_DEBUG_SUFFIX configuration macro to disable *d.so, *d.dll suffix in SharedLibrary class
2016-10-10 12:07:58 +02:00
Guenter Obiltschnig
b02d8cecdb
fixed GH #1431 : Poco/FIFOBuffer.h copy issue
2016-10-07 21:27:46 +02:00
Guenter Obiltschnig
29010bc6ad
fixed GH #1403 : Android compile with poco-1.7.5 no 'pthread_condattr_setclock' error
2016-10-07 21:06:59 +02:00
Günter Obiltschnig
a73eef0487
improvement of URIStreamOpener::open() implementation
2016-09-29 19:07:52 +02:00
Guenter Obiltschnig
e87a3a6e45
style fix
2016-09-29 17:44:34 +02:00
Günter Obiltschnig
5d8faa371e
added URISyntaxException; better error handling in URIStreamOpener
2016-09-29 17:42:49 +02:00
Guenter Obiltschnig
18e594e7ff
fixed issues reported by Klocwork
2016-09-26 19:22:47 +02:00
Guenter Obiltschnig
78f954f58f
fixed issues reported by Klocwork
2016-09-26 19:22:32 +02:00
Guenter Obiltschnig
8935e19bbc
fixed potential memory leak in out-of-memory situations
2016-09-26 19:19:14 +02:00
Guenter Obiltschnig
5d750ac8ed
fixed issues reported by Klocwork
2016-09-26 19:18:44 +02:00
Guenter Obiltschnig
68e3676ddc
fixed an unlikely potential memory leak if one of two new fails
2016-09-26 19:16:54 +02:00
Guenter Obiltschnig
ad1be5fe87
fixed GH #1418:Poco::Delegate assignment operator fails to compile for some specializations
2016-09-20 20:48:36 +02:00
Guenter Obiltschnig
dcdcee5afa
minor fixes for style
2016-09-14 17:06:55 +02:00
Günter Obiltschnig
f0402f2773
Merge pull request #1315 from kimgr/bugcheck-abort
...
Redefine Poco assertions for static analysis
2016-09-14 16:49:27 +02:00
Guenter Obiltschnig
ae3c4a4ba3
fixed some warnings and minor issues detected by clang-analyzer
...
Conflicts:
Data/src/RecordSet.cpp
2016-09-13 11:40:59 +02:00
Günter Obiltschnig
47b4ef97db
Merge pull request #1399 from CosminCremarenco-Murex/fix-starts-with-ends-with
...
Fix String.h startsWith/endsWith
2016-09-07 09:14:40 +02:00
CREMARENCO Cosmin
c0906ab5aa
Fix failing testStartsWith: startsWith/endsWith will dereference invalid string iterator when the prefix/suffix is longer than the actual length of the string
2016-09-06 17:18:25 +02:00
Guenter Obiltschnig
60f5d630b3
fixed a unused warning
2016-09-06 15:25:41 +02:00
Günter Obiltschnig
ff2d8b65c7
Revert "GH #1050 JSON: fix gcc -Wshadow warnings"
2016-09-05 08:37:47 +02:00
Günter Obiltschnig
7491374264
Revert "GH #1050 Net: fix gcc -Wshadow warnings"
2016-09-05 08:35:17 +02:00
Günter Obiltschnig
81b140e0a9
Revert "GH #1050 NetSSL_OpenSSL: fix gcc -Wshadow warnings"
2016-09-05 08:31:43 +02:00
Günter Obiltschnig
f7d3737526
Revert "GH #1050 Foundation-tests: fix gcc -Wshadow warnings"
2016-09-05 08:28:18 +02:00
Günter Obiltschnig
1683dd18ae
Revert "GH #1050 Util tests: fix gcc -Wshadow warnings"
2016-09-05 08:27:13 +02:00
Guenter Obiltschnig
7150a6da00
style fix
2016-08-27 08:34:46 +02:00
Günter Obiltschnig
63b3e23049
Merge pull request #1361 from CosminCremarenco-Murex/tilde-expansion
...
Shell expansion rules say that tilde must be replaced with $HOME before calling getpwuid
2016-08-27 08:27:38 +02:00
Guenter Obiltschnig
6b85acab07
added Poco::SingletonHolder::reset()
2016-08-27 08:23:27 +02:00
CREMARENCO Cosmin
9d81f54067
Shell expansion rules say that tilde must be replaced with HOME if it exists and only after that we can look at getpwuid
2016-08-24 12:16:47 +02:00
Guenter Obiltschnig
64635f7c8b
- prefer clock_getttime() over gettimeofday() if available
...
- use CLOCK_MONOTONIC for POSIX condition in Poco::Event and Poco::Semaphore if supported
2016-08-11 13:00:22 +02:00
Guenter Obiltschnig
a1b8f96111
fixed a potential buffer overrun in Path_WIN32U.cpp (noncritical, as the failing code should never be reached)
2016-08-03 17:25:36 +08:00
Guenter Obiltschnig
8e7018df90
#1319 : remove call to poco_unexpected()
2016-08-02 13:11:04 +08:00
Günter Obiltschnig
cab7142a4e
Merge pull request #1319 from ObjSal/develop
...
Fixes an issue in DirectoryWatcher where it stops listening for events
2016-08-02 13:07:14 +08:00
Salvador Guerrero
5be13279cb
Fixes an issue in DirectoryWatcher where it stops listening for events after a batch deletion
2016-07-19 23:24:18 -06:00
Kim Grasman
dd4a3b583a
Redefine Poco assertions for static analysis
...
Static analyzers typically don't do cross-translation unit analysis, so
they don't understand that most of the Poco::Bugcheck methods never
return.
Unfortunately, some of them also don't understand noreturn annotations
(see e.g. http://en.cppreference.com/w/cpp/language/attributes ), so
decorating Bugcheck doesn't help.
Instead redefine all the Poco assertion macros to just call abort() iff
we're parsed by a known static analyzer.
2016-07-13 15:14:45 +02:00
Guenter Obiltschnig
b3e2bdede9
added test for ws/wss schemes
2016-07-03 11:59:16 +02:00
Guenter Obiltschnig
4bc95aaedf
fixed GH #1304 : URI doesn't know ws:/ or wss:// schemes
2016-07-03 11:20:48 +02:00
Aleksandar Fabijanic
d6ebf591a6
Merge pull request #1286 from hakan-akan/patch-1
...
Update Platform_WIN32.h
2016-05-27 20:59:29 -05:00
Aleksandar Fabijanic
5e75f7db27
Merge pull request #1279 from hakan-akan/develop
...
Added preprocessor guards for "define"s.
2016-05-27 20:59:18 -05:00
hakan-akan
eec6f09f71
Update Platform_WIN32.h
...
Default move semantics are not supported with 2012 (1700).
2016-05-27 18:54:57 -07:00
hakan
49a4eb7eb6
Added preprocessor guards for "define"s.
2016-05-19 13:02:41 -07:00
Miklos Vajna
4421048c78
GH #1050 Util tests: fix gcc -Wshadow warnings
2016-05-11 09:55:43 +02:00
Miklos Vajna
e170400bfd
Foundation: fix memory leaks in Logger sample
2016-05-09 21:15:41 +02:00
Guenter Obiltschnig
5c1d0b8568
style fix
2016-05-05 10:54:02 +02:00
Günter Obiltschnig
ac4f0625fd
Merge pull request #1131 from Kampbell/DynamicIgnoredToken
...
Make the Token ignore property a dynamic property.
2016-05-05 10:51:37 +02:00
Alex Fabijanic
95bb6bfeea
Merge branch 'develop' of https://github.com/pocoproject/poco into develop
2016-04-23 14:53:56 -06:00
Alex Fabijanic
0286d245ab
Only escape string values in Poco::JSON::Stringifier::stringify() #1027
2016-04-23 14:52:03 -06:00
Aleksandar Fabijanic
4b6c11242c
Merge pull request #1245 from aaron0x/develop
...
implement startsWith and endsWith.
2016-04-23 14:04:20 -05:00
Guenter Obiltschnig
a8962bb3b3
fixed GH #1253 : ListMap does not maintain insertion order if key already exists
...
Conflicts:
Foundation/include/Poco/ListMap.h
2016-04-21 09:34:13 +02:00
Benoît Bleuzé
76254ca055
Improves timestamp resolution on Unix systems
...
Adds microsecond precision when possible on Linux,
BSD and Apple systems.
Uses platform specific `struct stat`, and `utimes()`,
instead of `utime()`.
2016-04-17 20:20:34 +02:00
aaron0x
43d96a5bcb
implement startsWith and endsWith.
2016-04-18 01:14:13 +08:00
Guenter Obiltschnig
9710a828a3
style fixes (something messed up if-else formatting)
2016-04-16 09:39:24 +02:00
Günter Obiltschnig
3e0d788162
fixes for compatibility
2016-04-15 17:40:09 +02:00
Tony Abbott
1db7811ce5
GH #1222 Escape command line arguments passed to Process::launch() on Windows
2016-04-15 16:45:41 +02:00
Aleksandar Fabijanic
3c735ff6b0
remove comment
2016-04-04 20:17:52 -05:00
Jörg Krause
30159aea4b
GNU version of strerror_r not available on musl
...
The GNU version of glibc' `strerror_r` is non-portable.
When the POSIX and GNU API collides musl always provides the POSIX API. That
being the case for `strerror_r` musl does only support the POSIX version,
despite of `_GNU_SOURCE`.
2016-04-04 21:02:17 +02:00