Index: base/debug/stack_trace.cc |
diff --git a/base/debug/stack_trace.cc b/base/debug/stack_trace.cc |
index 7c44f7afeaef3f3ace0d3839c8dd51939ace635c..7fa059d9508a6ee3a90f5ab10d0dfc469b4c08c7 100644 |
--- a/base/debug/stack_trace.cc |
+++ b/base/debug/stack_trace.cc |
@@ -7,6 +7,12 @@ |
namespace base { |
namespace debug { |
+StackTrace::StackTrace(const void* const* trace, int count) { |
+ if (count) |
+ memcpy(trace_, trace, count * sizeof(trace[0])); |
Mark Mentovai
2011/08/27 00:29:02
This is very dangerous. trace_ only has room for k
Scott Hess - ex-Googler
2011/08/27 05:15:40
Oops, capped that.
|
+ count_ = count; |
+} |
+ |
StackTrace::~StackTrace() { |
} |