vlc | branch: master | David Fuhrmann <[email protected]> | Tue Feb  6 
23:22:59 2018 +0100| [617fd3ff5e7d367495ea7bbdf77481662b946a46] | committer: 
David Fuhrmann

keychain: Fix crash in release mode

In release mode, a random count value was used, leading to crash

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=617fd3ff5e7d367495ea7bbdf77481662b946a46
---

 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
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to