Commit Graph

1008 Commits

Author SHA1 Message Date
Jens Geyer
225646b554 THRIFT-4862 C++ TBinaryProtocol crashes on port scan
Client: cpp
Patch: Michael Patrick

This closes #1939
2019-11-20 03:04:00 +01:00
Kevin Wojniak
596e25f9b0 Fix unknown pragma warnings on mingw
Client: cpp
Patch: Kevin Wojniak

This closes #1917

These pragmas are only valid for MSVC. Fixes warnings found in the logs:

> In file included from C:\projects\thrift\lib\cpp\test\processor\ProcessorTest.cpp:40:
731C:\projects\thrift\lib\cpp\test\processor\Handlers.h:143: warning: ignoring #pragma warning  [-Wunknown-pragmas]
732  143 |   #pragma warning( push )
733      |
734C:\projects\thrift\lib\cpp\test\processor\Handlers.h:144: warning: ignoring #pragma warning  [-Wunknown-pragmas]
735  144 |   #pragma warning (disable : 4250 ) //inheriting methods via dominance
736      |
737C:\projects\thrift\lib\cpp\test\processor\Handlers.h:172: warning: ignoring #pragma warning  [-Wunknown-pragmas]
738  172 |   #pragma warning( pop )
739      |
2019-11-06 01:11:55 +01:00
Jens Geyer
3f3567a114 THRIFT-4981 Remove deprecated netcore bindings from the code base
Client: netcore
Patch: Jens Geyer

This closes #1901
2019-10-20 16:21:29 +02:00
Mario Emmenlauer
0f14e2f3f6 THRIFT-4977: Allow loading OpenSSL certificates from memory
Client: cpp

This closes #1860.
2019-10-15 10:25:10 +01:00
Guillaume Blanc
5e9203b2b2 THRIFT-4962 Fix deadlock in TimerManager::stop
Client: cpp
Author: Guillaume Blanc

This closes #1877
2019-09-21 14:40:15 +02:00
pengzhouhu
2ff4b13df4 THRIFT-4936 add depth limit type exception description
Client: C++
Patch: pengzhouhu

This closes #1852
2019-08-22 22:43:15 +02:00
Shaoyu Zhang
1a2dee60b4 Use THRIFT_WRITE instead of ::write in TFileTransport.cpp 2019-07-01 20:15:03 -04:00
soroshsabz
6a61dfabbf THRIFT-4830: Add to_string helper function for cpp generator (#1765) 2019-07-01 20:13:54 -04:00
Kevin Wojniak
a392566e9b THRIFT-4896 - prevent cpp and c_glib include directories from leaking into other targets (#1821)
- enable the automake `nostdinc` option
- fix up include paths
2019-07-01 14:07:45 -04:00
David Carlier
29ecfaba53 CPP generator test, catching exceptions by ref instead. 2019-06-21 07:30:13 -04:00
James E. King III
ee8caca54e THRIFT-4861: Set minimum boost to 1.56 and stop using deprecated boost predef endian header
Client: cpp
2019-05-04 21:52:29 -04:00
James E. King III
dbc1f8def5
THRIFT-4024, THRIFT-4783: throw when skipping invalid type (#1742)
* THRIFT-4024: make c_glib throw on unsupported type when skipping
* THRIFT-4783: throw on invalid skip (py)
* THRIFT-4024: make cpp throw on unsupported type when skipping
* THRIFT-4024: uniform skip behavior on unsupported type
2019-02-14 16:46:38 -05:00
cyy
647501693b THRIFT-4776:Modernize c++11 code by clang-tidy (#1732)
* use override
* use make_shared
* use emplace
* use range for
* fix error on MSVC
* replace boost functions with std functions
* fix static analyzer warnings
* check api return value
* initialize member
* check the return value of SSL_peek > 0
* add override
2019-02-08 00:40:59 -05:00
cyy
8fdb7587e6 THRIFT-4759:add thrift export to fix windows shared lib building (#1714)
* add THRIFT_EXPORT to fix windows shared lib building
* use shared libraries on vs2017 appveyor build, leave msvc2017 static link
2019-02-04 13:57:21 -05:00
James E. King III
71afec0ea3 THRIFT-4739: fix concurrency_test (test-only fix) 2019-02-02 22:10:41 -05:00
James E. King III
973c8552e0 THRIFT-4405: fix parsing bug in cpp json header read if sequence ID wrapped around to negative 2019-02-01 11:13:49 -05:00
James E. King III
f95620d2b1 THRIFT-4405: sanity tests relating to sequence numbers
- prove all servers return the sequence ID given
- prove that sequences that wrap around the int32_t space are handled ok
2019-02-01 11:13:49 -05:00
Sebastian Zenker
042580f534 THRIFT-4762: Applied some C++11 refactorings to the runtime library and compiler (#1719)
* make use of C++11 override keyword
* added const specifier to TTransport::getOrigin()
* added more const correctness to the compiler
* make use of auto keyword
* replaced usage of NULL with nullptr
* make use of explicitly-defaulted function definition
* extended changelog
2019-01-29 09:48:12 -05:00
Joel 'Aaron' Cohen
1231930abd THRIFT-4760: Configure and install pkgconfig files when using cmake
Client: cpp
2019-01-28 09:36:41 -05:00
James E. King III
29f7f8f32f THRIFT-4743: remove cpp compiler plugin support to simplify the project 2019-01-26 23:53:38 -05:00
cyy
9fed90104c fix static analyzer warings 2019-01-22 10:38:15 +08:00
cyy
f7a4ead00d fix warings 2019-01-22 10:38:14 +08:00
cyy
f6460fa00b change doc 2019-01-22 10:38:14 +08:00
cyy
72a878ebe3 change timeous_ms to unsigned type 2019-01-22 10:36:18 +08:00
cyy
c349cdb295 add override and const 2019-01-22 10:36:18 +08:00
cyy
fc222b3a87 remove useless assert code 2019-01-22 10:36:18 +08:00
cyy
c1bfe3d718 remove WIN XP macros 2019-01-22 10:36:18 +08:00
cyy
6a01d46df6 remove unused code 2019-01-22 10:36:18 +08:00
cyy
bfdbd0344b use chrono 2019-01-22 10:36:18 +08:00
cyy
d12dbed670 remove unused headers 2019-01-22 10:36:18 +08:00
cyy
7190ca7a3d remove unused headers 2019-01-22 10:36:17 +08:00
cyy
f83d3f90d6 add const to member functions 2019-01-22 10:36:17 +08:00
James E. King III
4eac57abcf THRIFT-4487: replace gettimeofday implementation on windows 2019-01-14 09:56:02 -05:00
James E. King III
234fb47229 THRIFT-4719: remove cocoa 2019-01-14 08:13:52 -05:00
James E. King III
1735542542 THRIFT-4735: Remove Qt4 build support 2019-01-13 09:01:52 -05:00
James E. King III
278528cf7b THRIFT-4732: windows cmake refinements and add windows docker build support 2019-01-11 20:47:00 -05:00
cyy
ca8af9b48f THRIFT-4730: remove pthread code and refactor, ending up with just ThreadFactory 2019-01-11 09:13:12 -05:00
James E. King III
c9ac8d2953 THRIFT-4720: documenting breaking changes, minor cleanup 2019-01-09 17:05:34 -05:00
cyy
0140cbf567 remove unused variables 2019-01-07 08:11:37 -05:00
cyy
1f34504f43 remove unused boost headers 2019-01-07 08:11:37 -05:00
cyy
863262dad7 add static_assert message 2019-01-07 08:11:37 -05:00
cyy
77d26e2e5c replace boost unique_ptr with std::unique_ptr 2019-01-07 08:11:37 -05:00
cyy
7007506960 replace boost static_assert with static_assert 2019-01-07 08:11:37 -05:00
cyy
7f8aef7099 replace boost::atomic with std::atomic 2019-01-07 08:11:37 -05:00
cyy
8cb3b68548 remove stdcxx namespace and use std directly 2019-01-07 08:11:37 -05:00
cyy
d65e91c476 remove stdcxx namespace and use std directly 2019-01-07 08:11:37 -05:00
cyy
316723add4 remove stdcxx namespace and use std directly 2019-01-07 08:11:37 -05:00
cyy
52637b33ab remove std tr1 2019-01-07 08:11:37 -05:00
cyy
9f837bbfb4 remove boost smart ptr 2019-01-07 08:11:37 -05:00
cyy
c109e01979 remove boost::thread and boost::mutex code 2019-01-07 08:11:37 -05:00