Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-7292 cppcheck checks of ReactOS code
  3. CORE-8207

cmd: mismatching allocation and deallocation

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: 0.3.17
    • Component/s: Applications
    • Labels:
      None

      Description

      [reactos/base/shell/cmd/replace.c:191]: (error) Mismatching allocation and deallocation: buffer

      buffer is allocated with VirtualAlloc() but freed with cmd_free() with just translates to crt free(), probably corrupts the heap and leaks the buffer. Use VirtualFree() instead.

        Attachments

          Activity

            People

            • Assignee:
              ThFabba ThFabba
              Reporter:
              encoded encoded
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: