Created
February 27, 2014 17:25
-
-
Save cynthia/9254787 to your computer and use it in GitHub Desktop.
This is a reverse engineered, minimized version of a crasher that I have experienced when trying to print, with Canon's SELPHY printer driver PDE (plug-in) installed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Minimized version of the ColorPDE.plugin crasher | |
// Sangwhan Moon <sangwhan@iki.fi> | |
// | |
// Based on ColorPDE.plugin - Copyright (c) Canon Electronics | |
// Compile with: | |
// gcc -g -F /Library/Printers/Canon/SELPHYCP/Frameworks \ | |
// -framework SELPHYCPUIKit -framework CoreFoundation colorpdecrasher.c | |
#include <Carbon/Carbon.h> | |
#define u kCFPreferencesCurrentUser | |
int main() | |
{ | |
int i, j, k; | |
char *p, *q; | |
i = GetCountOfLoginItems(u); | |
for (j = i; j > 0 ; j--) | |
{ | |
p = ReturnLoginItemPropertyAtIndex(u, 1, j-1); | |
q = p; | |
k = strcmp("foobar", q); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Adobe AIR (up to 4.0, not fixed yet) is also affected by this same "crasher" which seems to be triggered by a specific system preference state (i.e. my machine), but it doesn't seem to be limited to my specific case.
The AIR bug is reported here:
https://bugbase.adobe.com/index.cfm?event=bug&id=3712608