summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Varga <pvarga@inf.u-szeged.hu>2023-02-21 10:22:38 +0100
committerPeter Varga <pvarga@inf.u-szeged.hu>2023-02-23 14:08:03 +0000
commitf10c0c429f688fa7ee39ca8af4ff522e30776bea (patch)
tree2f993727f8a3812263693e8e42be74ce7849e695
parent10e54a075e08cac2267d43dcd0e092019f91c83f (diff)
downloadqtwebengine-chromium-f10c0c429f688fa7ee39ca8af4ff522e30776bea.tar.gz
Add checksum to mailbox name in Release build too
The lack of checksum may cause assert and error messages when a mailbox is passed from a release render process to a debug render process. Task-number: QTBUG-110504 Pick-to: 87-based 102-based Change-Id: Ib7d78e1e86a3f2ddda6dc8066abf9198040c38f6 Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/461554 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
-rw-r--r--chromium/gpu/command_buffer/common/mailbox.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chromium/gpu/command_buffer/common/mailbox.cc b/chromium/gpu/command_buffer/common/mailbox.cc
index 2de48a28a13..d472f98a1d0 100644
--- a/chromium/gpu/command_buffer/common/mailbox.cc
+++ b/chromium/gpu/command_buffer/common/mailbox.cc
@@ -34,7 +34,7 @@ Mailbox GenerateMailbox(bool is_shared_image) {
// Generates cryptographically-secure bytes.
base::RandBytes(result.name, sizeof(result.name));
MarkMailboxAsSharedImage(is_shared_image, result.name);
-#if !defined(NDEBUG)
+#if !defined(NDEBUG) || defined(TOOLKIT_QT)
int8_t value = 1;
for (size_t i = 1; i < sizeof(result.name); ++i)
value ^= result.name[i];