[PATCH] D109168: [Unwind] Cast exception class pointer for strcpy
Hans Wennborg via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 2 10:01:44 PDT 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG1bc175d486b5: [Unwind] Cast exception class pointer for strcpy (authored by hans).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109168/new/
https://reviews.llvm.org/D109168
Files:
libunwind/src/UnwindLevel1-gcc-ext.c
Index: libunwind/src/UnwindLevel1-gcc-ext.c
===================================================================
--- libunwind/src/UnwindLevel1-gcc-ext.c
+++ libunwind/src/UnwindLevel1-gcc-ext.c
@@ -109,7 +109,7 @@
// Create a mock exception object for force unwinding.
_Unwind_Exception ex;
memset(&ex, '\0', sizeof(ex));
- strcpy(&ex.exception_class, "CLNGUNW");
+ strcpy((char *)&ex.exception_class, "CLNGUNW");
#endif
// walk each frame
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109168.370312.patch
Type: text/x-patch
Size: 457 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210902/18649675/attachment.bin>
More information about the llvm-commits
mailing list