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
b038beb724
Add counters for mutex acquisitions, expose in bm_fullstack
8 years ago
Craig Tiller
61eb40ce56
Put files in a better place
8 years ago
Craig Tiller
8b1d59cafa
Add some debug utilities
...
This PR adds a set of debug helpers that are intended for calling only from gdb. They cross abstraction boundaries and allow quickly accessing one thing from another thing.
I expect to grow this library significantly over time to aid debugging tricky problems.
8 years ago
Craig Tiller
b23f4b7db9
Mark hybrid tests as flaky
8 years ago
yang-g
988b47c977
Add metadata_map.h to build.yaml
...
Add missing files to BUILD
8 years ago
Robbie Shade
ca7effcdff
Replace timeout/scaling macros with functions.
8 years ago
Craig Tiller
5cad46e218
Bump master version numbers
8 years ago
Craig Tiller
9a3997c853
Add a test verifying number of writes per RPC is reasonable
...
Mostly this is code copied from bm_fullstack and rephrased as a test.
I'm resisting the urge to unify it however, as I expect this code will evolve differently over time.
8 years ago
Craig Tiller
7c70b6c144
Revert "Revert "Metadata handling rewrite""
...
This reverts commit 5e01e2ac97
.
8 years ago
Craig Tiller
5e01e2ac97
Revert "Metadata handling rewrite"
8 years ago
Stanley Cheung
b39942f06f
Update boringssl to latest chromium-stable
8 years ago
Jan Tattermusch
1c6a144d69
fix ordering of deps in grpclb_test
8 years ago
ncteisen
9c7a08d250
Simplify cpp stress flags
8 years ago
Yuchen Zeng
e6f01f6b96
Add resolve_address_posix_test
8 years ago
Mark D. Roth
d58a985a56
Move detection of HTTP CONNECT proxy from DNS resolver to client channel.
8 years ago
Mark D. Roth
79f2a24644
Add proxy mapper hook.
8 years ago
Yuxuan Li
6fb04d6924
memory usage profiling for client call, client channel, server creation, server call and server channel.
...
fix bug. server: snapshot pass by pointer
8 years ago
Mario Emmenlauer
44b2d08149
Makefile.template: use import library names for mingw, instead of static libraries
8 years ago
Mario Emmenlauer
06d3d4ad38
Makefile.template: remove the 'imp' suffix from MINGW library names
8 years ago
Craig Tiller
45d318351b
Kill ESAN
8 years ago
Mario Emmenlauer
abe9757da1
Makefile: fixed a few variables names, and added a missing variable on dll name
8 years ago
Alexander Polcyn
6ff1ca4871
re-run generate project to build qps json driver
8 years ago
Craig Tiller
032baa8308
Fix sanity: check_sources_and_headers
8 years ago
Eric Gribkoff
c344e87449
Adds HTTP/2 interop test client
8 years ago
Mario Emmenlauer
13f6716d85
Makefile.template and Makefile: install plugins on MSYS2 / MINGW32 platform
8 years ago
Mario Emmenlauer
1643c045a0
Makefile.template and Makefile: avoid stripping too heavily on MSYS2 / MINGW32 platform
8 years ago
Mario Emmenlauer
121d289e28
Makefile.template and Makefile: use .exe suffix for grpc_cpp_plugin on MSYS2 / MINGW32 platform
8 years ago
Mario Emmenlauer
294dc2f003
Makefile.template and Makefile: avoid def-files on MSYS2 / MINGW32 platform
8 years ago
Muxi Yan
a52032ed09
Build fix
8 years ago
Craig Tiller
d7ee291d5f
Fix tests
8 years ago
Craig Tiller
732351f826
Start fixing http error --> grpc status conversion
8 years ago
Mark D. Roth
1f0f23cc5a
Handshaker plugin mechanism.
8 years ago
Craig Tiller
2ef5a647bf
Add a test of finishing buffering with EOS
8 years ago
Craig Tiller
4e6247a23c
Fix sequential write buffering
8 years ago
Nicolas "Pixel" Noble
c2390cc01b
Properly removing message_size_filter duplicate.
8 years ago
Nicolas "Pixel" Noble
0fc9999fba
Putting message size filter back.
8 years ago
Nicolas "Pixel" Noble
3d5592cea8
Moving message_size_filter properly.
8 years ago
Mark D. Roth
4d2ea02129
Revert "Revert "Revert "Revert "Remove redundant includes from string.h and tmpfile.h""""
8 years ago
Craig Tiller
30268a99e0
Revert "Revert "Revert "Remove redundant includes from string.h and tmpfile.h"""
8 years ago
Craig Tiller
70a85ad617
Revert "Handle (and test) short call deadlines"
8 years ago
Sree Kuchibhotla
ef8ef3b8f3
Tests for pollset_set.
8 years ago
David Garcia Quintas
9460166968
Short deadlines: set Status on deadline
8 years ago
Sree Kuchibhotla
8bebcbcf7c
Remove pollset_set_test for now and send it in a separate PR
8 years ago
Sree Kuchibhotla
e6f516ecc9
Remove PO_DEBUG from build.yaml and move it to ev_epoll_linux.c
8 years ago
David Garcia Quintas
ff3112188b
Renamed google_benchmark submodule to benchmark
8 years ago
murgatroid99
f0f787d117
Fix Ruby compilation problems on MinGW
8 years ago
Mark D. Roth
2d317fbc57
Revert "Revert "Remove redundant includes from string.h and tmpfile.h""
8 years ago
Mark D. Roth
d101e14211
Revert "Renamed google_benchmark submodule to benchmark"
8 years ago
Mark D. Roth
4eec0041f5
Revert "Remove redundant includes from string.h and tmpfile.h"
8 years ago