Skip to content

Instantly share code, notes, and snippets.

@cynthia
Created February 27, 2014 17:25
Show Gist options
  • Save cynthia/9254787 to your computer and use it in GitHub Desktop.
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.
// 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;
}
@cynthia
Copy link
Author

cynthia commented Feb 27, 2014

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

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