Ultimate crash code!!!

Post any examples or modules that you want to share here
Post Reply
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Ultimate crash code!!!

Post by KG_is_back »

I have found a way to ultimately crashing schematic.
Following code will instantly crash application once it is activated. It is due to a fact that memory address [0] is reserved as a special value for "no address defined". If you try to load form that space schematic instantly crashes.

Code: Select all

streamout out;
mov eax,0;
fld [eax];
fstp out[0]


When you use it in poly section the code is executed when voice is created. You can therefore create a code that crashes the application on order. It might be useful for a "prank" VST that crashes a daw once you hit a button. Or even better for registration protection in your plugins and apps that will ultimately prevent user form using certain features of the program unless registered.
Attachments
code_crasher.fsm
(1.32 KiB) Downloaded 1115 times
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: Ultimate crash code!!!

Post by tester »

Good one. :mrgreen:

Until they fix it in FS. :-)
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Ultimate crash code!!!

Post by KG_is_back »

tester wrote:Good one. :mrgreen:

Until they fix it in FS. :-)


that's the cool thing about it - it is unfixable. The code would have to check the address every time before fld [eax]; gets executed - it would have to automatically add lines to your assembly code which is generally a very bad idea in the first place (it would kill the point of assembler prmitive, as it would "unoptimize" your every schematic). It works in C++ and every programing language too - ULTIMATE CODE-CRASH!!!
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Ultimate crash code!!!

Post by KG_is_back »

A little fun improvement xD
Attachments
code_crasher.fsm
(1.46 KiB) Downloaded 1126 times
Post Reply