summaryrefslogtreecommitdiff
path: root/absl/log/BUILD.bazel
diff options
context:
space:
mode:
authorGravatar Andy Getzendanner <durandal@google.com>2022-11-21 21:17:53 -0800
committerGravatar Copybara-Service <copybara-worker@google.com>2022-11-21 21:18:39 -0800
commit9a7e8e36300c6d89c7f9a2539f7aabf8e0031106 (patch)
treecbf03dd0ec10bc81451b996df4c9e8437d702ca1 /absl/log/BUILD.bazel
parentd081b629b7c201e701911cfb4e0c99735c21c331 (diff)
Zero encoded_remaining when a string field doesn't fit, so that we don't leave partial data in the buffer (all decoders should ignore it anyway) and to be sure that we don't try to put any subsequent operands in either (there shouldn't be enough space).
PiperOrigin-RevId: 490143656 Change-Id: I4d743dd9214013fbd151478ef662d50affd5ff7a
Diffstat (limited to 'absl/log/BUILD.bazel')
-rw-r--r--absl/log/BUILD.bazel1
1 files changed, 1 insertions, 0 deletions
diff --git a/absl/log/BUILD.bazel b/absl/log/BUILD.bazel
index 733b0c3f..b5ce616c 100644
--- a/absl/log/BUILD.bazel
+++ b/absl/log/BUILD.bazel
@@ -332,6 +332,7 @@ cc_test(
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,
deps = [
+ ":check",
":log",
":scoped_mock_log",
"//absl/log/internal:test_matchers",