diff mbox series

[oe,meta-oe,08/10] breakpad: Pass correct type name to sizeof()

Message ID 20180910050629.16170-8-raj.khem@gmail.com
State Accepted
Commit 6718a9cc2d97bcfd0616af2c0f264b7ca49f35b1
Headers show
Series [oe,meta-xfce,01/10] xfce4-vala: Build for vala 0.42 to match oe-core | expand

Commit Message

Khem Raj Sept. 10, 2018, 5:06 a.m. UTC
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>
---
 ...01-disable-calls-to-getcontext-with-musl.patch | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

-- 
2.18.0

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
diff mbox series

Patch

diff --git a/meta-oe/recipes-devtools/breakpad/breakpad/0001-disable-calls-to-getcontext-with-musl.patch b/meta-oe/recipes-devtools/breakpad/breakpad/0001-disable-calls-to-getcontext-with-musl.patch
index c762754ad1..bc79727edd 100644
--- a/meta-oe/recipes-devtools/breakpad/breakpad/0001-disable-calls-to-getcontext-with-musl.patch
+++ b/meta-oe/recipes-devtools/breakpad/breakpad/0001-disable-calls-to-getcontext-with-musl.patch
@@ -8,11 +8,11 @@  Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
  src/client/linux/handler/exception_handler.cc | 17 +++++++++++++++++
  1 file changed, 17 insertions(+)
 
-diff --git a/src/client/linux/handler/exception_handler.cc b/src/client/linux/handler/exception_handler.cc
-index cca023f..f3e460c 100644
---- a/src/client/linux/handler/exception_handler.cc
-+++ b/src/client/linux/handler/exception_handler.cc
-@@ -495,7 +495,19 @@ bool ExceptionHandler::SimulateSignalDelivery(int sig) {
+Index: git/src/client/linux/handler/exception_handler.cc
+===================================================================
+--- git.orig/src/client/linux/handler/exception_handler.cc
++++ git/src/client/linux/handler/exception_handler.cc
+@@ -495,7 +495,19 @@ bool ExceptionHandler::SimulateSignalDel
    siginfo.si_code = SI_USER;
    siginfo.si_pid = getpid();
    ucontext_t context;
@@ -42,11 +42,8 @@  index cca023f..f3e460c 100644
      return false;
 +#else
 +  // Extreme hack - see comments above.
-+  memset (&context.context, 0, sizeof(&context.context));
++  memset (&context.context, 0, sizeof(context.context));
 +#endif
  
  #if defined(__i386__)
    // In CPUFillFromUContext in minidumpwriter.cc the stack pointer is retrieved
--- 
-1.9.1
-