[vlc-commits] keychain: Fix crash in release mode
David Fuhrmann
git at videolan.org
Tue Feb 6 23:25:15 CET 2018
vlc/vlc-3.0 | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | 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 <dfuhrmann at videolan.org>
> 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;
More information about the vlc-commits
mailing list