Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D dynamorio
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,467
    • Issues 1,467
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 44
    • Merge requests 44
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • DynamoRIO
  • dynamorio
  • Issues
  • #2038
Closed
Open
Issue created Oct 19, 2016 by Administrator@rootContributor

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.

Assignee
Assign to
Time tracking