Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

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

michaelrsweet opened this issue May 9, 2003 · 1 comment
Milestone

Comments

@michaelrsweet
Copy link
Collaborator

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);
@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

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

Thanks!

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

No branches or pull requests

1 participant