drrun errantly removing quotes from app cmdline
Created by: dwendt
So, this particular app has to have a cmdline of:
app.exe /CFG="test.ini"
However, I can't find any way to make this happen in the actual resulting process cmdline through drrun?
drrun.exe -c client.dll -maintest 0x400000 -- app.exe /CFG="test.ini"
results in cmdline app.exe /CFG=test.ini
drrun.exe -c client.dll -maintest 0x400000 -- app.exe "/CFG=\"test.ini\""
results in cmdline app.exe "/CFG=\"test.ini\""
drrun.exe -c client.dll -maintest 0x400000 -- app.exe /CFG=\"test.ini\"
results in cmdline app.exe "/CFG=\"test.ini\""
My guess is there is some way to trick this block of code into doing this? https://github.com/DynamoRIO/dynamorio/blob/a71bf92fb995dada7bfb93046655b6f7c94a22e0/core/win32/injector.c#L700
Platform is win7 x64.