size_limit_ member of minidump_descriptor ignored in copy constructor
Patch by Avishai Hendel <avish@fb.com>, R=mkrebs at https://codereview.appspot.com/7305060/ git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1114 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
0513eeca07
commit
24c9dfed8a
2 changed files with 4 additions and 2 deletions
|
@ -38,7 +38,8 @@ namespace google_breakpad {
|
|||
MinidumpDescriptor::MinidumpDescriptor(const MinidumpDescriptor& descriptor)
|
||||
: fd_(descriptor.fd_),
|
||||
directory_(descriptor.directory_),
|
||||
c_path_(NULL) {
|
||||
c_path_(NULL),
|
||||
size_limit_(descriptor.size_limit_) {
|
||||
// The copy constructor is not allowed to be called on a MinidumpDescriptor
|
||||
// with a valid path_, as getting its c_path_ would require the heap which
|
||||
// can cause problems in compromised environments.
|
||||
|
@ -57,6 +58,7 @@ MinidumpDescriptor& MinidumpDescriptor::operator=(
|
|||
c_path_ = NULL;
|
||||
UpdatePath();
|
||||
}
|
||||
size_limit_ = descriptor.size_limit_;
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ namespace google_breakpad {
|
|||
|
||||
class MinidumpDescriptor {
|
||||
public:
|
||||
MinidumpDescriptor() : fd_(-1) {}
|
||||
MinidumpDescriptor() : fd_(-1), size_limit_(-1) {}
|
||||
|
||||
explicit MinidumpDescriptor(const string& directory)
|
||||
: fd_(-1),
|
||||
|
|
Loading…
Reference in a new issue