We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78e5734 commit bbafa52Copy full SHA for bbafa52
lldb/source/Plugins/ObjectFile/Minidump/MinidumpFileBuilder.cpp
@@ -718,7 +718,7 @@ Status MinidumpFileBuilder::AddExceptions() {
718
// We have 120 bytes to work with and it's unlikely description will
719
// overflow, but we gotta check.
720
memcpy(&exp_record.ExceptionInformation, description.c_str(),
721
- std::max(description.size(), Exception::MaxParameterBytes));
+ std::min(description.size(), Exception::MaxParameterBytes));
722
exp_record.UnusedAlignment = static_cast<llvm::support::ulittle32_t>(0);
723
ExceptionStream exp_stream;
724
exp_stream.ThreadId =
0 commit comments