Not posting your error messages was one thing.
Not including the whole path in "" was another.
Not posting your error messages was one thing.
Not including the whole path in "" was another.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Then Windows Would not work ProperlyOriginally Posted by Desolation
> Then Windows Would not work Properly
But if it's done subtly, you wouldn't know that. And even if you did, once the executable is triggered, the damage might be done before you have a chance to do anything about it.
I didnt Understand What you told.
Say cmd.exe was replaced with a program which formatted your hard drive. Sure, Windows wouldn't work properly. But if you ran cmd.exe, the damage would be done anyway.
But you wouldn't have to have cmd.exe replaced. If the program you were running was replaced or infected or something, like sample.exe, Windows might work just fine until you ran this program.
If you supply the complete path to a program, there's a slightly reduced security risk, but not by much, especially on Windows systems. Executing an external program always has some risks.
[edit] Also, There's No Need To Do This. [/edit]
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.
But I dont understand where is the Risk of the Programmer if something bad went on it will affect that users (who was trying to crack that) PC not the Programmers one. As it was w orking fine when it was just factory made. The User is trying to so something Bad So teh User is reliable for that. Where is the Headeche of teh Programmer here ??
How many users will want to buy your program after they know that the program puts their computers under some risks?Where is the Headeche of teh Programmer here ??
How long will you stay at your job after the marketing will fail to sell the product?
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler