Commit 4459f6b6 authored by Scott Graham's avatar Scott Graham Committed by Commit Bot

Update Crashpad to 122363ccaea7b568b3ec8f1d2d6d8f47de0e1106

122363ccaea7 Fix compile for Linux 32b fuzz target

Bug: 966292
Change-Id: I07aba00aa266572fe54b545600e831f27cb1857a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1625875Reviewed-by: default avatarScott Graham <scottmg@chromium.org>
Reviewed-by: default avatarAbhishek Arya <inferno@chromium.org>
Commit-Queue: Scott Graham <scottmg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#662720}
parent d1d44c4e
...@@ -2,7 +2,7 @@ Name: Crashpad ...@@ -2,7 +2,7 @@ Name: Crashpad
Short Name: crashpad Short Name: crashpad
URL: https://crashpad.chromium.org/ URL: https://crashpad.chromium.org/
Version: unknown Version: unknown
Revision: 7b0155760628923bad5321c896af1ab2965c6d2a Revision: 122363ccaea7b568b3ec8f1d2d6d8f47de0e1106
License: Apache 2.0 License: Apache 2.0
License File: crashpad/LICENSE License File: crashpad/LICENSE
Security Critical: yes Security Critical: yes
......
...@@ -31,7 +31,8 @@ class FakeProcessMemory : public ProcessMemory { ...@@ -31,7 +31,8 @@ class FakeProcessMemory : public ProcessMemory {
VMAddress offset_in_data = address - fake_base_; VMAddress offset_in_data = address - fake_base_;
if (offset_in_data > size_) if (offset_in_data > size_)
return -1; return -1;
ssize_t read_size = std::min(size_ - offset_in_data, size); size_t read_size =
std::min(static_cast<size_t>(size_ - offset_in_data), size);
memcpy(buffer, &data_[offset_in_data], read_size); memcpy(buffer, &data_[offset_in_data], read_size);
return read_size; return read_size;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment