openbsd-ports/net/silc-server/patches/patch-lib_silcmath_tma_h
sthen 2c3aea7ddc SECURITY update: fixes possible buffer overflow in PKCS#1 message decoding.
Version update 1.0 -> 1.1 as tested by several people.
2008-03-22 23:06:50 +00:00

13 lines
427 B
Plaintext

$OpenBSD: patch-lib_silcmath_tma_h,v 1.2 2008/03/22 23:06:50 sthen Exp $
--- lib/silcmath/tma.h.orig Thu May 3 11:13:16 2007
+++ lib/silcmath/tma.h Fri Feb 29 23:36:31 2008
@@ -51,7 +51,7 @@ extern "C" {
/* detect 64-bit mode if possible */
-#if defined(__x86_64__)
+#if defined(__x86_64__) && !defined(__OpenBSD__)
#if !(defined(MP_64BIT) && defined(MP_16BIT) && defined(MP_8BIT))
#define MP_64BIT
#endif