vlc/vlc-3.0 | branch: master | David Fuhrmann | Tue
Feb 6 23:22:59 2018 +0100| [6c6ba1214a3b7b8010697517065ad6c1e89ae3b9] |
committer: David Fuhrmann
keychain: Fix crash in release mode
In release mode, a random count value was used, leading to crash
(cherry picked from commit 617fd3ff5e7d367495ea7bbdf77481662b946a46)
Signed-off-by: David Fuhrmann
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=6c6ba1214a3b7b8010697517065ad6c1e89ae3b9
---
modules/keystore/keychain.m | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/keystore/keychain.m b/modules/keystore/keychain.m
index 9f4908cc8c..9382bd8a8b 100644
--- a/modules/keystore/keychain.m
+++ b/modules/keystore/keychain.m
@@ -381,6 +381,7 @@ static unsigned int Find(vlc_keystore *p_keystore,
SecKeychainItemRef itemRef = (__bridge
SecKeychainItemRef)([listOfResults objectAtIndex:i]);
SecKeychainAttributeInfo attrInfo;
+attrInfo.count = 0;
#ifndef NDEBUG
attrInfo.count = 1;
___
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits