mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-01 13:40:04 +00:00
breakpad: Pass correct type name to sizeof()
memset is clearing memory area address starting at contect.context but it needs the correct size of type 'ucontext_t', currently its getting size of 'ucontext_t*' Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Andre McCurdy <armccurdy@gmail.com>
This commit is contained in:
+6
-9
@@ -8,11 +8,11 @@ Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
|
|||||||
src/client/linux/handler/exception_handler.cc | 17 +++++++++++++++++
|
src/client/linux/handler/exception_handler.cc | 17 +++++++++++++++++
|
||||||
1 file changed, 17 insertions(+)
|
1 file changed, 17 insertions(+)
|
||||||
|
|
||||||
diff --git a/src/client/linux/handler/exception_handler.cc b/src/client/linux/handler/exception_handler.cc
|
Index: git/src/client/linux/handler/exception_handler.cc
|
||||||
index cca023f..f3e460c 100644
|
===================================================================
|
||||||
--- a/src/client/linux/handler/exception_handler.cc
|
--- git.orig/src/client/linux/handler/exception_handler.cc
|
||||||
+++ b/src/client/linux/handler/exception_handler.cc
|
+++ git/src/client/linux/handler/exception_handler.cc
|
||||||
@@ -495,7 +495,19 @@ bool ExceptionHandler::SimulateSignalDelivery(int sig) {
|
@@ -495,7 +495,19 @@ bool ExceptionHandler::SimulateSignalDel
|
||||||
siginfo.si_code = SI_USER;
|
siginfo.si_code = SI_USER;
|
||||||
siginfo.si_pid = getpid();
|
siginfo.si_pid = getpid();
|
||||||
ucontext_t context;
|
ucontext_t context;
|
||||||
@@ -42,11 +42,8 @@ index cca023f..f3e460c 100644
|
|||||||
return false;
|
return false;
|
||||||
+#else
|
+#else
|
||||||
+ // Extreme hack - see comments above.
|
+ // Extreme hack - see comments above.
|
||||||
+ memset (&context.context, 0, sizeof(&context.context));
|
+ memset (&context.context, 0, sizeof(context.context));
|
||||||
+#endif
|
+#endif
|
||||||
|
|
||||||
#if defined(__i386__)
|
#if defined(__i386__)
|
||||||
// In CPUFillFromUContext in minidumpwriter.cc the stack pointer is retrieved
|
// In CPUFillFromUContext in minidumpwriter.cc the stack pointer is retrieved
|
||||||
--
|
|
||||||
1.9.1
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user