Skip to content

Commit 005d80b

Browse files
kevingosseveerbia
authored andcommitted
[Crashtracking] Zero the stackframe upon creation (#6346)
## Summary of changes Zero the stackframes on Linux on creation. ## Reason for change Because they were not zero'd, we ended up with garbage in the pdb info fields. ## Implementation details `{}`
1 parent 774b753 commit 005d80b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

profiler/src/ProfilerEngine/Datadog.Profiler.Native.Linux/CrashReportingLinux.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ std::vector<StackFrame> CrashReportingLinux::GetThreadFrames(int32_t tid, Resolv
191191
unw_get_reg(&cursor, UNW_REG_IP, &ip);
192192
unw_get_reg(&cursor, UNW_REG_SP, &sp);
193193

194-
StackFrame stackFrame;
194+
StackFrame stackFrame{};
195195
stackFrame.ip = ip;
196196
stackFrame.sp = sp;
197197
stackFrame.isSuspicious = false;

0 commit comments

Comments
 (0)