ReWolf (ReWolf) <rewolf rewolf pl> |
Thursday, March 4 2010 13:00.59 CST |
Few months ago I've encountered a strange behavior in cmd.exe when I wanted to list some big collection of files and execute some command on every single file. I used for this task 'for' command similar to this:
for /R c:\ %c in (*.*) do echo %c >> cmd_ptc.log
After few hours of processing I get a very disturbing message:
"Not enough storage is available to process this command."
Actually cmd.exe can eat all memory available for the process. I decided to check why it needs such amount of memory and if it will be possible fix it. Below you can find link to the full article and package with the fixed binaries (from Windows Vista SP2):
http://rewolf.pl/stuff/rewolf_cmd_research.pdf - article
http://rewolf.pl/stuff/rewolf_cmd_research.zip - article and binaries
Happy reading !
ReWolf
– Feb 2009 – discovered problem
– Jul 2009 – researched and patched cmd.exe
– Mar 2010 – finished this paper
damn, you're one, lazy bum :) |
Great paper! I've really enjoyed the way you've explained how you traced and fixed the leak issue :)
It's a perfect paper to show to reverse engineering students and say "please look here... yes, this is how you should do it".
Thanks for sharing ;> |
Rewolf, great job as usual ;)
GynvaelColdwind, dear friend how are you doing ? :) hope you'll enjoy Dubai hehe.. |
|
Thanks rewolf, very interesting!! |
@sovietskicpu
Hey :) Long time no chat my firend (and our last vm-detection related chat was very educating, so I kinda miss new ones ;<) ;>
Any chance seeing you in Dubai? It would be great to meet openrce guys in person ;) |
Impressive!
The scale and the ambition of your work were executed professionally.
|
|
thanx dude! very good reading. |
|