diff --git a/BUILD b/BUILD index ad85b202a9..e6e27f84e4 100644 --- a/BUILD +++ b/BUILD @@ -259,9 +259,9 @@ cc_library( "//conditions:default": CPPOPTS }), deps = [ - "@absl//absl/base:core_headers", - "@absl//absl/container:flat_hash_map", - "@absl//absl/strings", + "@com_google_absl//absl/base:core_headers", + "@com_google_absl//absl/container:flat_hash_map", + "@com_google_absl//absl/strings", "@com_google_protobuf//:protobuf", "@com_google_protobuf//:protoc_lib", ], diff --git a/bazel/workspace_deps.bzl b/bazel/workspace_deps.bzl index 7f98d1e2a8..262ebd8683 100644 --- a/bazel/workspace_deps.bzl +++ b/bazel/workspace_deps.bzl @@ -12,7 +12,7 @@ def upb_deps(): maybe( git_repository, - name = "absl", + name = "com_google_absl", commit = "070f6e47b33a2909d039e620c873204f78809492", remote = "https://github.com/abseil/abseil-cpp.git", shallow_since = "1541627663 -0500", diff --git a/upb/table.c b/upb/table.c index 8896d217db..fd5bc53f96 100644 --- a/upb/table.c +++ b/upb/table.c @@ -756,7 +756,8 @@ uint32_t upb_murmur_hash2(const void *key, size_t len, uint32_t seed) { /* Mix 4 bytes at a time into the hash */ const uint8_t * data = (const uint8_t *)key; while(len >= 4) { - uint32_t k = *(uint32_t *)data; + uint32_t k; + memcpy(&k, data, sizeof(k)); k *= m; k ^= k >> r;