[vlc-commits] keychain: Fix crash in release mode

David Fuhrmann git at videolan.org
Tue Feb 6 23:23:43 CET 2018


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | 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;



More information about the vlc-commits mailing list