Jan Tattermusch
7897ae9308
auto-fix most of licenses
8 years ago
ncteisen
22dbd73b43
Add static assert to enforce subtype invariant
8 years ago
Craig Tiller
017b452b7b
Use larger block size in proto write
8 years ago
ncteisen
e107b0d439
Add to codegen interface, refactor proto serialization
...
This change allows for some internal proto serialization
changes to be made
8 years ago
Harvey Tuch
5f3cfe960f
Fix read from uninitialized memory bug in GrpcBufferWriter.
...
This commit fixes an issue in which the following sequence of operations
leads to use of uninitialized memory:
1. Caller invokes GrpcBufferWriter::Next(), and then makes use of 8191
bytes in the returned buffer (which is 8192 bytes in size).
2. Caller then returns the unused single byte via
GrpcBufferWriter::BackUp(). This method invokes
g_core_codegen_interface->grpc_slice_split_tail(), which causes
backup_slice_ to be a grpc_slice with one byte.
3. At the next invocation of GrpcBufferWriter::Next(), a reference to
the single byte grpc_slice is returned to the caller.
The problem here is that the returned reference is to the inlined buffer
in the grpc_slice, which is resident in slice_, not the location of the
buffer inside slice_buffer_ after
g_core_codegen_interface->grpc_slice_buffer_add() in
GrpcBufferWriter::Next(). As a result, any data the caller writes to the
returned void* data is lost.
The solution is to avoid inlined backup slices.
8 years ago
Craig Tiller
1d77059e4b
Fix integer overflow
8 years ago
Craig Tiller
62f28bfcf0
Remove double-checking of max-message-size in C++ layers
8 years ago
Vijay Pai
c0b2acb1a0
Use C++11 final and override
8 years ago
Craig Tiller
618e67d655
s/GPR_SLICE/GRPC_SLICE/g
8 years ago
Craig Tiller
d41a4a720f
s/gpr_slice/grpc_slice, and move around tests, impls
8 years ago
Mark D. Roth
6980362c4e
Allow setting max send message size via C++ ServerBuilder API.
8 years ago
David Garcia Quintas
c79b0650d2
removed codegen/log.h
8 years ago
David Garcia Quintas
3b31fdf77b
removed codegen/byte_buffer.h
8 years ago
David Garcia Quintas
6721d4f0f1
Return success status of grpc_byte_buffer_reader
9 years ago
David Garcia Quintas
0fde7131aa
Fixed usage of anon namespace inside .h
9 years ago
David Garcia Quintas
1b2db6333d
Moved protos out of core_codegen interface
9 years ago
Craig Tiller
6169d5f7b0
Update copyrights
9 years ago
David Garcia Quintas
b942640497
clang-format
9 years ago
David Garcia Quintas
6848c4e145
wip. prior to cq refactoring
9 years ago
David Garcia Quintas
7f7181ffc5
fix comments
9 years ago
David Garcia Quintas
c4f4f7ede9
clang-format
9 years ago
David Garcia Quintas
f588aeb1e2
introduced workaround for proto_utils
9 years ago
Alistair Veitch
75d5c0f024
post merge
9 years ago
David Garcia Quintas
5a9462339d
copyrights
9 years ago
David Garcia Quintas
6a48405ed0
pre sync_stream.cc creation. Does not compile
9 years ago
yang-g
9e2f90cd06
headers reorg
9 years ago
Craig Tiller
e9fad15b0b
Remove redundant decls
10 years ago
Craig Tiller
bd277cb3cb
Clarify serialization traits interface
10 years ago
Craig Tiller
928ec8ee51
Fix memory leak
10 years ago
Craig Tiller
4beef42264
Clarify ownership
10 years ago
Craig Tiller
ce40de58da
clang-format
10 years ago
Craig Tiller
50a7a68ca2
Progress commit on fixing up C++
10 years ago
Yang Gao
3921c56bee
Expose max message size at the server side
10 years ago
Yang Gao
6baa9b67ad
clang-format c++ code
10 years ago
Yang Gao
7694c35d5f
Global replace google::protobuf::Message with grpc::protobuf::Message, all tests passed
10 years ago
Nicolas "Pixel" Noble
1ff52d5278
Guard headers tool.
10 years ago
Craig Tiller
190d360def
Add missing new-lines at end of file
10 years ago
Craig Tiller
0605995e55
Update copyright to 2015
10 years ago
Craig Tiller
ecd49345b5
Use clang-format-3.5
10 years ago
Craig Tiller
b5dcec5a2e
clang-format codebase
10 years ago
Nicolas Noble
b7ebd3b8c6
Initial import.
10 years ago