shezi / clipcrash Goto Github PK
View Code? Open in Web Editor NEWA proof of concept for how to crash a Snow Leopards clipboard.
A proof of concept for how to crash a Snow Leopards clipboard.
This application can crash your Macs clipboard, at least on Snow Leopard 10.6.8 The process to do so is quite simple, but requires a few manual steps. 0. Close all applications that are not vital to this test, i.e. everything except Activity Monitor and XCode. 1. Load the project in XCode and start it. 2. Let it run for a few seconds. You can put a few things into your clipboard to see the output. 3. Kill the application in XCode. 4. You should get the familiar "kill\nquit\nProgram ended with exit code: 0" message. 5. Try to copy something to the clipboard. The application that you do this in will lock up (if not, repeat steps 2--4). In fact, any application that tries to access the system clipboard will freeze up and go into a loop. This can and will include XCode, every browser you have open, every terminal you have open and eventually the Finder. As soon as your Finder freezes, you don't have much chance to save your system. The only thing that helps is a hard shut down. If your Finder isn't frozen yet, you can avoid the shutdown by quickly force-killing every frozen application and logging out. Logging back in will reset the clipboard and give you a clean slate. I have tried debugging into a freezing application, and the code the breaks is already the retrieval of the system clipboard via pb = [NSPasteboard generalPasteboard]; This call will go into a rather tight spin lock, from which it will not return. As to the reason for this, I have no idea. Note that the only reference I could find to a similar phenomenon is a StackOverflow question under http://stackoverflow.com/questions/2796997/crashing-the-os-x-pasteboard
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.