DynamoRIO / DynamoRIO/dynamorio
drrun errantly removing quotes from app cmdline
- Dominant language
- C
- Stars
- 3.2k
- Forks
- 629
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 31
Description
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.
Contributor guide
Assessment
This issue has not been assessed yet.