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

Invalid free in rpcrt4 when passing zero-size array and using -Oif

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 0.3.17
    • Wine

    Description

      Is ROS this is most frequently seen when calling StartService with no arguments. RStartServiceW will receive an argv pointer that points to the end of the message buffer. Because the
      if (Pointer >= pStubMsg->BufferStart && Pointer < pStubMsg->BufferEnd)
      check will fail (since Pointer == pStubMsg->BufferEnd), rpcrt4 will attempt to free this memory, which is incorrect.

      Attachments

        Issue Links

          Activity

            People

              ThFabba ThFabba
              ThFabba ThFabba
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: