| Index: third_party/crashpad/crashpad/util/numeric/checked_address_range.h
|
| diff --git a/third_party/crashpad/crashpad/util/numeric/checked_address_range.h b/third_party/crashpad/crashpad/util/numeric/checked_address_range.h
|
| index e9514bbdec6e256082a6ccdad822c75d33692148..65f85fbd0f3375043c09a5d4a868dc98565964b6 100644
|
| --- a/third_party/crashpad/crashpad/util/numeric/checked_address_range.h
|
| +++ b/third_party/crashpad/crashpad/util/numeric/checked_address_range.h
|
| @@ -17,6 +17,8 @@
|
|
|
| #include <stdint.h>
|
|
|
| +#include <string>
|
| +
|
| #include "build/build_config.h"
|
| #include "util/numeric/checked_range.h"
|
|
|
| @@ -108,6 +110,12 @@ class CheckedAddressRangeGeneric {
|
| //! CheckedAddressRangeGeneric objects involved.
|
| bool ContainsRange(const CheckedAddressRangeGeneric& that) const;
|
|
|
| + //! \brief Returns a string describing the address range.
|
| + //!
|
| + //! The string will be formatted as `"0x123 + 0x45 (64)"`, where the
|
| + //! individual components are the address, size, and bitness.
|
| + std::string AsString() const;
|
| +
|
| private:
|
| #if defined(COMPILER_MSVC)
|
| // MSVC cannot handle a union containing CheckedRange (with constructor, etc.)
|
|
|