Fix DebugTrapHandler

The class should have used SIGTRAP, not SIGILL
This commit is contained in:
Jeffrey Walton 2020-12-07 00:48:40 -05:00
parent c6c575aa49
commit f2d726b092
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

4
trap.h
View File

@ -151,9 +151,9 @@ NAMESPACE_BEGIN(CryptoPP)
/// <A HREF="http://seclists.org/oss-sec/2016/q3/520">CVE-2016-7420</A> /// <A HREF="http://seclists.org/oss-sec/2016/q3/520">CVE-2016-7420</A>
#if defined(CRYPTOPP_DOXYGEN_PROCESSING) #if defined(CRYPTOPP_DOXYGEN_PROCESSING)
class DebugTrapHandler : public SignalHandler<SIGILL, false> { }; class DebugTrapHandler : public SignalHandler<SIGTRAP, false> { };
#else #else
typedef SignalHandler<SIGILL, false> DebugTrapHandler; typedef SignalHandler<SIGTRAP, false> DebugTrapHandler;
#endif #endif
#endif // Linux, Unix and Documentation #endif // Linux, Unix and Documentation