summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@thewalter.net>2014-08-08 17:19:12 +0200
committerStef Walter <stef@thewalter.net>2014-08-08 18:44:20 +0200
commit2663c834561207b947f6a8e98a7661644b6c9630 (patch)
tree14b1f7798a014836b011781e2aaed5700f272607
parentf8c7ed390672d0749aaf0bbbad2c2af7145ebc01 (diff)
downloadp11-kit-2663c834561207b947f6a8e98a7661644b6c9630.tar.gz
p11-kit: Fix integer overflow in memset() argument
-rw-r--r--p11-kit/virtual.c2
1 files changed, 1 insertions, 1 deletions
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);