summaryrefslogtreecommitdiff
path: root/absl/strings/BUILD.bazel
diff options
context:
space:
mode:
authorGravatar Matt Kulukundis <kfm@google.com>2024-01-29 12:14:16 -0800
committerGravatar Copybara-Service <copybara-worker@google.com>2024-01-29 12:15:25 -0800
commit9a79278a9793574cad2773b3445a887f949bc705 (patch)
tree3d7d0347715d51901113c1b3a62bc350b2c103e9 /absl/strings/BUILD.bazel
parent42624b3d9d56ae6fd5c48b28715044667942b9d8 (diff)
Fix a corner case in SpyHashState for exact boundaries.
AbslHash allows for piecewise chunks to be streamed incrementally into hash states and requires them to hash identically to one giant stream. The exact size window for this is an internal details `PiecewiseChunkSize`. There was an off by one error in this code. Add tests and fix it. PiperOrigin-RevId: 602463183 Change-Id: I159bbb5e7e745f55b2fe6eaf0d2735bd0a08aca9
Diffstat (limited to 'absl/strings/BUILD.bazel')
-rw-r--r--absl/strings/BUILD.bazel1
1 files changed, 1 insertions, 0 deletions
diff --git a/absl/strings/BUILD.bazel b/absl/strings/BUILD.bazel
index 8e8371b3..ed2ab04f 100644
--- a/absl/strings/BUILD.bazel
+++ b/absl/strings/BUILD.bazel
@@ -918,6 +918,7 @@ cc_test(
"//absl/container:fixed_array",
"//absl/functional:function_ref",
"//absl/hash",
+ "//absl/hash:hash_testing",
"//absl/log",
"//absl/log:check",
"//absl/random",