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

Incorrect parsing CommandLine argumernts

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 0.4.3
    • CRT
    • 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. test.c
          0.3 kB
        2. crt_mist_getargs.patch
          9 kB
        3. msvccrt_apitest_getmainargs.patch
          5 kB
        4. msvccrt_apitest_getmainargs.patch
          4 kB
        5. crt_mist_getargs.patch
          9 kB
        6. CORE-11673.patch
          13 kB
        7. CORE-11673.patch
          13 kB

        Activity

          People

            learn_more Mark Jansen
            Yaros Yaros
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: