Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-11673

Incorrect parsing CommandLine argumernts

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: 0.4.3
    • Component/s: CRT
    • Labels:
    • Module:
    • Sprint:
      August 2016

      Description

      Empty string "" should be parsed as an empty argument. When it is in the end of the command, it doesn't get parsed. If there is a space in the end, it gets parsed correctly.

      There is a dummy app in attachment I used to test.

      d:\test 1 2 "" <- no space in the end
      argc 3
      argv[0] test
      argv[1] 1
      argv[2] 2
       
      d:\test 1 2 "" <- SPACE in the end
      argc 3
      argv[0] test
      argv[1] 1
      argv[2] 2
      argv[3] 

        Attachments

        1. CORE-11673.patch
          13 kB
        2. CORE-11673.patch
          13 kB
        3. crt_mist_getargs.patch
          9 kB
        4. crt_mist_getargs.patch
          9 kB
        5. msvccrt_apitest_getmainargs.patch
          4 kB
        6. msvccrt_apitest_getmainargs.patch
          5 kB
        7. test.c
          0.3 kB

          Activity

            People

            • Assignee:
              learn_more Mark Jansen
              Reporter:
              Yaros Yaroslav Veremenko
            • Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: