summaryrefslogtreecommitdiff
path: root/trap.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2020-12-07 00:48:40 -0500
committerJeffrey Walton <noloader@gmail.com>2020-12-07 00:48:40 -0500
commitf2d726b0924fb1f9c701a2e8b3fce64461b6873b (patch)
tree1e4f8f513cd049d7296054f2e6bfb351a2a2b943 /trap.h
parentc6c575aa492c5f8cd8a34412f7a251a33fe1d5bb (diff)
downloadcryptopp-git-f2d726b0924fb1f9c701a2e8b3fce64461b6873b.tar.gz
Fix DebugTrapHandler
The class should have used SIGTRAP, not SIGILL
Diffstat (limited to 'trap.h')
-rw-r--r--trap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/trap.h b/trap.h
index 4526761a..15360b56 100644
--- a/trap.h
+++ b/trap.h
@@ -151,9 +151,9 @@ NAMESPACE_BEGIN(CryptoPP)
/// <A HREF="http://seclists.org/oss-sec/2016/q3/520">CVE-2016-7420</A>
#if defined(CRYPTOPP_DOXYGEN_PROCESSING)
-class DebugTrapHandler : public SignalHandler<SIGILL, false> { };
+class DebugTrapHandler : public SignalHandler<SIGTRAP, false> { };
#else
-typedef SignalHandler<SIGILL, false> DebugTrapHandler;
+typedef SignalHandler<SIGTRAP, false> DebugTrapHandler;
#endif
#endif // Linux, Unix and Documentation