diff options
author | Stef Walter <stef@thewalter.net> | 2014-08-08 17:19:12 +0200 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2014-08-08 18:44:20 +0200 |
commit | 2663c834561207b947f6a8e98a7661644b6c9630 (patch) | |
tree | 14b1f7798a014836b011781e2aaed5700f272607 /p11-kit | |
parent | f8c7ed390672d0749aaf0bbbad2c2af7145ebc01 (diff) |
p11-kit: Fix integer overflow in memset() argument
Diffstat (limited to 'p11-kit')
-rw-r--r-- | p11-kit/virtual.c | 2 |
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); |