From 2663c834561207b947f6a8e98a7661644b6c9630 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 8 Aug 2014 17:19:12 +0200 Subject: p11-kit: Fix integer overflow in memset() argument --- p11-kit/virtual.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p11-kit/virtual.c b/p11-kit/virtual.c index 104ece0..2f4f0ae 100644 --- a/p11-kit/virtual.c +++ b/p11-kit/virtual.c @@ -2787,7 +2787,7 @@ p11_virtual_unwrap (CK_FUNCTION_LIST_PTR module) * p11_virtual_is_wrapper() recognizes this. This is in case the * destroyer callback tries to do something fancy. */ - memset (&wrapper->bound, 0xFEEEFEEE, sizeof (wrapper->bound)); + memset (&wrapper->bound, 0xFE, sizeof (wrapper->bound)); if (wrapper->destroyer) (wrapper->destroyer) (wrapper->virt); -- cgit v1.1