Page 1 of 1

Ultimate crash code!!!

Posted: Sun Mar 23, 2014 2:02 am
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.

Re: Ultimate crash code!!!

Posted: Sun Mar 23, 2014 2:12 am
by tester
Good one. :mrgreen:

Until they fix it in FS. :-)

Re: Ultimate crash code!!!

Posted: Sun Mar 23, 2014 2:18 am
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!!!

Re: Ultimate crash code!!!

Posted: Sun Mar 23, 2014 2:33 am
by KG_is_back
A little fun improvement xD