cupsLangGet can crash on OS X with corrupted lang pref. #78

Closed
michaelrsweet opened this Issue May 9, 2003 · 1 comment

Comments

Projects
None yet
1 participant
Collaborator

michaelrsweet commented May 9, 2003

Version: 1.1.19rc4
CUPS.org User: jlovell

cupsLangGet can crash on OS X if a users language preferences become corrupt (don't yet know how the corruption happen). This patch should fix it.

Index: language.c

RCS file: /home/anoncvs/cups/cups/language.c,v
retrieving revision 1.36
diff -u -d -b -w -r1.36 language.c
--- language.c 23 Apr 2003 14:41:50 -0000 1.36
+++ language.c 9 May 2003 17:44:29 -0000
@@ -614,7 +614,8 @@
kCFPreferencesCurrentApplication);

 if (localizationList != NULL &&
  •    CFGetTypeID(localizationList) == CFArrayGetTypeID())
    
  •    CFGetTypeID(localizationList) == CFArrayGetTypeID() &&
    
  •    CFArrayGetCount(localizationList) > 0)
    
    {
    localizationName = CFArrayGetValueAtIndex(localizationList, 0);
Collaborator

michaelrsweet commented May 9, 2003

CUPS.org User: mike

Applied to CVS for 1.1.19rc5 (to be released Monday)

Thanks!

michaelrsweet added this to the Stable milestone Mar 17, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment