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

KsLoadResource can leak memory on failure path

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 0.3.15
    • Drivers: Other
    • None
    • Operating System: ReactOS
      Platform: x86 Hardware

    Description

      KsLoadResource accesses a PE resource, allocates buffer and then copies the contents into the buffer. All is done inside an SEH block.
      An exception can happen before the allocation (searching for the resource data) and after it (copying the resource data).
      The exception handler does not free the buffer, if it was already allocated.

      Attachments

        Activity

          People

            j_anderw Johannes Anderwald
            ThePhysicist Timo Kreuzer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: